Navigation

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

    Posts made by Kukulin

    • RE: WiFi gateway, MQTT, openhab

      Thank you.

      posted in General Discussion
      Kukulin
      Kukulin
    • RE: WiFi gateway, MQTT, openhab

      Hi, it is fixed, I'm just blind. I did not see how to initialize mysensors in development branch example. I switched to master branch and can set gw.begin(NULL,nodeID);
      Can someone explain me how to do same for humidity sketch in development branch?
      Thanks

      posted in General Discussion
      Kukulin
      Kukulin
    • RE: WiFi gateway, MQTT, openhab

      @moskovskiy82 said:
      The only problem is that as an MQTT client - the gateway doesn't assign any Node ID.

      I think this can be overcome by hardcoding the ID's for every sensor.

      Hi, is there any guide how to hardcode IDs for Node and sensors?
      My MQTT client gateway is talking to Mosquitto broker, my DHT sensor is talking to gateway but I never get correct data from sensor even if it measure and always send same information - see log from debug :

      Starting sensor (RNNNA-, 2.0.0-beta)
      Radio init successful.
      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=fail:
      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=fail:
      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
      Init complete, id=255, parent=0, distance=1
      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
      T: 28.30
      req id
      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
      H: 80.70
      

      and same time log from MQTT gateway client:

      HHQA8~hl,|.i:p0;255;3;0;9;Starting gateway (RNNGE-, 2.0.0-beta)
      0;255;3;0;9;Radio init successful.
      scandone
      state: 0 -> 2 (b0)
      .state: 2 -> 3 (0)
      state: 3 -> 5 (10)
      add 0
      aid 8
      pm open phy_2,type:2 0 0
      cnt 
      ..
      connected with KAKV005, channel 2
      ip:192.168.1.210,mask:255.255.255.0,gw:192.168.1.1
      .IP: 192.168.1.210
      0;255;3;0;9;Init complete, id=0, parent=0, distance=0
      IP: 192.168.1.210
      0;255;3;0;9;Attempting MQTT connection...
      0;255;3;0;9;MQTT connected
      0;255;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Sending message on topic: mg1-out/255/255/3/0/3
      0;255;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Sending message on topic: mg1-out/255/255/3/0/3
      0;255;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Sending message on topic: mg1-out/255/255/3/0/3
      0;255;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Sending message on topic: mg1-out/255/255/3/0/3
      0;255;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Sending message on topic: mg1-out/255/255/3/0/3
      0;255;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;Sending message on topic: mg1-out/255/255/3/0/3
      
      
      posted in General Discussion
      Kukulin
      Kukulin