@kalina I will send you a PM!
Posts made by rubenverhoef
-
RE: 💬 MDMSGate
I like the product and want to buy two of them. Is shipping to the Netherlands possible?
-
RE: 💬 MDMSNode "Lighting"
Is it possible to dim the light with this device? (and also LED lights)
-
RE: 💬 MDMSGate
I like your gateway! Can you maybe post it on OSHPark? so i can order the PCB?
-
MyMessage entity number in stead of name
Hi!
I'm new to MySensors and i'm currently making a OTGW logger (see http://otgw.tclcode.com)
I want to make the code flexible because not everybody wants to log every message of the OTGW. The code is already finished but i only have one thing i want improve.
Now i have:MyMessage pressure(1,V_PRESSURE); MyMessage set_temp(2,V_TEMP); ...... many more
And at the sending part i have:
switch(ID) { case 1: send(pressure.set(value)); break; case 2: send(set_tep.set(value)); break; ....many more cases.... }
I want to do something like:
MyMessage 1(1,V_PRESSURE); MyMessage 2(2,V_TEMP); .......
and at the sending part i can just do:
send(ID.set(value));
But that wouldn't compile because it is a number i think in stead of a name.
Does anyone know a nice way to do it?