Replies: 1 comment
|
You can simply cast the char buffer to uint8_t pointer. char buffer[5] = "data";
uint8_t *p = reinterpret_cast<uint8_t *>(buffer);
LMIC.setTxData2(2, p, 4, false); |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
How do I create a payload as a string with a uint_8 data type
All reactions