.... happy holidays to you Jkandasa
I'm rethinking my vision / use of the Mys protocol
as I have chosen a Usb gateway and mostly a communication bus in rs485 (RF is for specific cases)
MyC <---usb---> Gateway Mega2560/Gui-Oled <----RS485---> Nodes1 2 3 <---- RF ---> NodeX
the controller in a closet
the gateway on the desk (usb 3 meters)
the nodes everywhere in the house (in the technical parts)
and as the "real" Node to Node doesn't work (yes a gateway is mandatory for routing)
I'll see how I'm going to do a state management.
I'm testing a feedback on the OLED display of the gateway.
an example of the sketch on the gateway of a remote node
//------ node 36 Link distant ------
const byte LINKY_NODE_ID = 36 ; // node linky
const byte CHILD_ID_PAPP = 1 ; // ID papp
uint16_t valPAPP ; // variable valeur PAPP
//-------- linky papp ------------------
if (message.sender == LINKY_NODE_ID && message.sensor==CHILD_ID_PAPP && message.type == V_VA ) { // val PAPP
valPAPP = message.getInt();
Serial.print("val PAPP. : ");
Serial.println(valPAPP);
}
//------------ OLED valeur PAPP --------------------------
void valPaPP()
{
oled.set2X();
oled.setCursor(37,2);
oled.print(valPAPP);
oled.print("va ");
}