Hello to all,
first sorry for my bad englisch and for my stupid question..
Is there somthing like
strtok()
for integer?
So when i have int16_t myvalue = 13; -2345; 7865, -34 to split it up at every ";" so i get ervery value which is seperated by ; on its own?
Thank for helping and best regards
gcjr
2
is this an ASCII string received over the serial interface?
i get i over UDP
struct UDP_MESSAGE_OFFVAL {
char id[10];
int16_t actoffset[6];
};
UDP_MESSAGE_OFFVAL msgoffval
(UdpTwo.read((byte*)&msgoffval, sizeof(msgoffval)) == sizeof(msgoffval))
and then i want to split
msgoffval.actoffset // somthing like 12;-1234;76897;45;678;-345
at every ";"
thanks
gcjr
4
"actOffset" is an array. each integer can be accessed individually by indexing into the array.
ah ok then i misunderstood something
Thanks
I am new at programming...
system
Closed
6
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.