I am trying to send data across 2 NRF24 which works fine, But the send() function of the nrf24 library expects something like send(uint8_t array, sizeof(uint8_t array)); But how would i send a string across? My current code is:
uint8_t data = "test"; nrf24.send(data, sizeof(data));
I tried something like:
String Id = "ABCD1234ABCD"; char buffer; uint8_t data = Id.toCharArray(buffer, 20); nrf24.send(data, sizeof(Id));
but when i do that i get the following error:
error: array must be initialized with a brace-enclosed initializer
exit status 1 initializer fails to determine size of 'data'