for this tutorialhttps://cytrontechnologies.github.io/RFM-LoRa-Shield-Examples/Arduino-Sketches-Overview/, it just send a string from a node to the other node, but if i want to send a integer instead of string, how should i change the code?
- CODE: SELECT_ALL_CODE
Serial.println("Sending to rf95_server");
// Send a message to rf95_server
String radiopacket = "Hello World #";
radiopacket += String(packetnum++);
radiopacket += " from ";
radiopacket += node_id;
Serial.print("Sending "); Serial.println(radiopacket); delay(10);
rf95.send((uint8_t*)radiopacket.c_str(), radiopacket.length()+1);
Serial.println("Waiting for packet to complete..."); delay(10);
rf95.waitPacketSent();
hope there is anyone who can help here. Thanks!