Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
rubenverhoefR

rubenverhoef

@rubenverhoef
About
Posts
5
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • 💬 MDMSGate
    rubenverhoefR rubenverhoef

    @kalina I will send you a PM!

    OpenHardware.io atsha204a mysensors gateway esp8266 ethernet mysensors gateway nrf24l01 usb atmega328 rfm69

  • 💬 MDMSGate
    rubenverhoefR rubenverhoef

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

    OpenHardware.io atsha204a mysensors gateway esp8266 ethernet mysensors gateway nrf24l01 usb atmega328 rfm69

  • 💬 MDMSNode "Lighting"
    rubenverhoefR rubenverhoef

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

    OpenHardware.io nrf24l01 rfm69 arduino mysensors light switch light acdc

  • 💬 MDMSGate
    rubenverhoefR rubenverhoef

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

    OpenHardware.io atsha204a mysensors gateway esp8266 ethernet mysensors gateway nrf24l01 usb atmega328 rfm69

  • MyMessage entity number in stead of name
    rubenverhoefR rubenverhoef

    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?

    Development mymessage otgw
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular