Navigation

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

    Best posts made by Marcell Kovacs

    • RE: st=fail help please

      Hey all,
      I started to build an advanced sensor node after playing around the samples. Messed up sometimes, which took me few hours to figure out. So here are some basic things to check (probably for noobs like me):

      • This is NOT a 5V device, connect to 3.3V 🙂
      • Call "gw.process()" often! Without it a few messages might be still sent, but ack will surely fail.
      • Do NOT sleep. use gw.wait() (same when you do long operations on another device, like waiting for Serial events)
      • double-triple check if you use the same MyConfig.h for your sensors (forgot to flash with the new one)
      • take care when using interrupts. No Serial in ISR! 🙂
        +1: when you 'present' some sensors with ack, gw.wait() a bit between them for a better success rate.
        Hope you won't have these kind of issues.

      // If you this this post should not be here, please rage 😉

      posted in Troubleshooting
      Marcell Kovacs
      Marcell Kovacs
    • RE: Migrating to MySensors 2.0

      @hek said:

      You might need to declare them extern so the compiler won't complain.

      This IS the solution. Thank you for this. To be honest i never used (or knew) extern keyword exists. As a Java-dev, i see this against I believe in : )

      Thank you! You made me see the light in the tunnel. (I'm still in the hope its not the train : )

      To share the actual solution:
      In the class, where I was using MyGateway *gw before, now I have this (in the .cpp file):
      extern bool send(MyMessage &message, bool enableAck)
      ...and i replaced gw->send(..) with send(..)

      The imports for the MyMessage class had to be changed to core/MyMessage.h.
      I'm using visual micro + visual studio for this development.

      posted in Troubleshooting
      Marcell Kovacs
      Marcell Kovacs