In general it's an ascii field (with null endings) except for binary fields (memory locations).
I'm using owcapi function ow_put to talk to a DS2413 switch device but I'm confused about the buffer passed into ow_put. Is it an ASCII string (it is of type 'char' after all) or is it an array of binary bytes. If the former, does the buffer length parameter include the terminating null?
i.e. is it .....
char val[10]; val[0] = value; len = 1;
or is it.....
sprintf(val,"%d",value); len = strlen(val);
then.....
ow_put(path, val, len);
Thanks
Robin
In general it's an ascii field (with null endings) except for binary fields (memory locations).