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
S

SteveO1234

@SteveO1234
Unfollow Follow
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Noob--API help?
    S SteveO1234
    Development

    Thanks for the encouragement and help! So it seems as I need to create this message handler function that is referenced in the gw.begin().. And from that point any incoming messages are routed through the function?

    //
    void incomingMessage(const MyMessage &message)
    {
      if (message.isAck())
      {
        Serial.println("This is an ack from gateway");
      }
      if (message.type == V_LIGHT)
      {
        // Change relay state
        state = message.getBool();
        Serial.print ("State = ");
        Serial.print (state);
        // Store state in eeprom
        gw.saveState(ID, state);
        Serial.print("Incoming change for sensor:");
        Serial.print(message.sensor);
        Serial.print(", New status: ");
        Serial.println(message.getBool());
      }
    }
    //
    

  • Noob--API help?
    S SteveO1234
    Development

    I solved my immediate concern by gleening off other sketches. It's another way to learn. Now I can control my loop by checking the state on the controller.

    Learning a little along the way. My question remains--is there a resource available beyond the API page that outlines the steps to embrace this awesome technology?

    Thanks,
    --Steve


  • Noob--API help?
    S SteveO1234
    Development

    Hi,

    Loving this stuff! I'm ready to move on from basics and want to start more original work. Hence the need to dive into the API.

    Is there any guide, beyond the description on the API page as to how it all fits together?

    For example I'm trying to run my loop() code based on the state of the device in Vera. The hardware and program runs OK, and the node is talking to the GW. I'd really benefit from some kind of tutorial. Is there such a thing? I don't seem to grasp it all yet.

    Thanks in advance,
    --Steve


  • First sensor ... so close but no temp reading
    S SteveO1234
    Vera vera temperature plugin help

    I had the same problem... I just added the I_Arduino1.xml to the gateway as you suggested and it worked! Thanks.
    --Steve

  • Login

  • Don't have an account? Register

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