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
  1. Home
  2. Controllers
  3. Controller with NodeJS

Controller with NodeJS

Scheduled Pinned Locked Moved Controllers
1 Posts 1 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fl0rian
    wrote on last edited by
    #1

    Hi,

    I want to work with NodeJsController.js file.
    Can you help me, and give me responses of :

    • What is the role of "loadFirmware" method ?
    • Why "saveProtocol" method is called only if sensor = 255 ?
    • When I connect a new node relay, I can see this :
    send: 105-105-0-0 s=255,c=0,t=18,pt=0,l=5,sg=0,st=ok:1.5.1
    send: 105-105-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
    read: 0-0-105 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    repeater started, id=105, parent=0, distance=1
    send: 105-105-0-0 s=255,c=3,t=11,pt=0,l=5,sg=0,st=ok:Relay
    send: 105-105-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
    send: 105-105-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
    

    I don't understand good these steps.
    Why the node send all information with "s=255" and send the latest with "s=1" ? In the controller, I must save only the latest version, so "s=1" ?
    Actually, the "saveSensor" is called 2 times :

    send: 105-105-0-0 s=255,c=0,t=18,pt=0,l=5,sg=0,st=ok:1.5.1
    send: 105-105-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
    

    Thanks for your help.

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    2

    Online

    12.0k

    Users

    11.2k

    Topics

    113.4k

    Posts


    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
    • Login

    • Don't have an account? Register

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