• Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login
  • Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login

Send Message from the Controller to a Node (MySensors)

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 3 Posters 1.7k Views 2 Watching
Loading More Posts
  • 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.
  • A Offline
    andyphan
    last edited by jkandasa 12 Aug 2017, 07:33 5 Dec 2017, 18:32

    I setup a RFM69 transceiver wireless network utilizing MySensors /MyController - Built in MQTT broker and MQTT gateway. All node and sensors resources are discovered OK. All sensor data sent to gateway from nodes received OK.

    Everything else seemed working OK except I haven't figured out how to send a MySensors' format message from the Controller/Gateway to a node and a child sensor. I tried to send a raw message and forward payload to a node using the UI tool on MyController. The node never received the message.

    The receiving node has the following sketch

    //========= Receiving Message from GW======
     void receive(const MyMessage &message)
    {
        Serial.print("received msg type");
        Serial.println(message.type);
        Serial.print("Incoming change for sensor:");
        Serial.println(message.sensor);
     }
    

    Nothing showed on Serial Screen.

    Can someone point me to the right direction? I'm miss-understood something?

    J 1 Reply Last reply 6 Dec 2017, 02:30 Reply Quote 0
    • J Offline
      jkandasa @andyphan
      last edited by 6 Dec 2017, 02:30

      @andyphan Have you enabled serial debug? What is the message you sent?

      1 Reply Last reply Reply Quote 0
      • T Offline
        Tag MOD
        last edited by 6 Dec 2017, 05:45

        Hi!,

        Found this example that works in my network.

        does this work for you?

        1 Reply Last reply Reply Quote 0
        • A Offline
          andyphan
          last edited by 7 Dec 2017, 13:26

          It works now. I mistakenly had one of the connected sensor to sleep upon iddle. The node only receives messages when none of the attached sensor is sleeping.

          T 1 Reply Last reply 8 Dec 2017, 07:22 Reply Quote 0
          • T Offline
            Tag MOD @andyphan
            last edited by 8 Dec 2017, 07:22

            @andyphan 👍

            1 Reply Last reply Reply Quote 0
            2 out of 5
            • First post
              2/5
              Last post

            0

            Online

            590

            Users

            529

            Topics

            3.4k

            Posts
            Copyright © 2015-2025 MyController.org | Contributors | Localization