Using an Adafruit Feather M0 board with LoRa radio, I want to send GPS position to a receiver. When trying to create a data packet with an ISO 8601 timestamp and lat/long GPS values I am using the following code to create a char
array and then send it:
char radiopacket[40] = {GPS.year + "-" + GPS.month + "-" + GPS.day + "T" + GPS.hour + ":" + GPS.minute + ":" + GPS.seconds + "Z" + "," + GPS.latitude + "," + GPS.longitude};
rf95.send((uint8_t *)radiopacket, 40);
I keep getting the error:
invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
Where am I going wrong?