teddyz
1
This is how it shall be done:
Mirf.setTADDR((byte *) "DT_00" );
But I want set them as bytes instead, passing an array of bytes seems impossible:
Mirf.setTADDR((byte *) {0,1,2,3,4} );
This gives compile error too many initializers for 'byte'.
How can I do instead?
system
2
But I want set them as bytes instead,
Why?
Put the bytes in an array, and pass the array to the function. You can NOT build an array on-the-fly like you are trying to.
teddyz
3
OK. Does that mean that the character array "DT_00" is a special case, because it works?