add arduino code
Fix compiler warnings
complete the post_data function