Arduino Lib Help!.....

Status
Not open for further replies.

brian25

Member level 2
Joined
Feb 18, 2013
Messages
52
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,601
how to put a value of int or byte in a string

SendSMS(byte sim_phonebook_position, char *message_str)

i want to read the pins and ouput like this 10111(1 if high and 0 if low)
but this part (char *message_str) only accept string.
 

Code:
sprintf(message_str, "%d", int_x);             //for integer
sprintf(message_str, "%d", (int)char_c);     //for byte
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…