Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. rubenverhoef
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    rubenverhoef

    @rubenverhoef

    1
    Reputation
    5
    Posts
    631
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    rubenverhoef Follow

    Best posts made by rubenverhoef

    • RE: 💬 MDMSGate

      I like the product and want to buy two of them. Is shipping to the Netherlands possible?

      posted in OpenHardware.io
      rubenverhoef
      rubenverhoef

    Latest posts made by rubenverhoef

    • RE: 💬 MDMSGate

      @kalina I will send you a PM!

      posted in OpenHardware.io
      rubenverhoef
      rubenverhoef
    • RE: 💬 MDMSGate

      I like the product and want to buy two of them. Is shipping to the Netherlands possible?

      posted in OpenHardware.io
      rubenverhoef
      rubenverhoef
    • RE: 💬 MDMSNode "Lighting"

      Is it possible to dim the light with this device? (and also LED lights)

      posted in OpenHardware.io
      rubenverhoef
      rubenverhoef
    • RE: 💬 MDMSGate

      I like your gateway! Can you maybe post it on OSHPark? so i can order the PCB?

      posted in OpenHardware.io
      rubenverhoef
      rubenverhoef
    • 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?

      posted in Development
      rubenverhoef
      rubenverhoef