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

    Correct way RSSI display in current version

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 2 Posters 421 Views 1 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.
    • C Offline
      Clone Tv
      last edited by Clone Tv

      How do I display the RSSI in the current version?
      i try on sensor:

      void receive(const MyMessage & msg) {
      ....
                if ((msg.type == V_VAR1) || (msg.type == V_VAR5) || (msg.type == I_SIGNAL_REPORT_REQUEST)) {
                  radioQuality();
                  PRINTF("-- rssi: %u\n", rssi);
                  MY_CRITICAL_SECTION {
                    char *buff = new char[18]{};
                    (void) snprintf(buff, 17, "rssi: %d", rssi);
      
        // 1.a  _sendRoute(build(_msgTmp, GATEWAY_ADDRESS, MY_NODE_ID, C_SET, V_VAR1, false).set(buff));
        // 1.b _sendRoute(build(_msgTmp, GATEWAY_ADDRESS, MY_NODE_ID, C_SET, V_VAR5, false).set(buff));
        // 1.c _sendRoute(build(_msgTmp, GATEWAY_ADDRESS, MY_NODE_ID, C_SET, I_SIGNAL_REPORT_RESPONSE, false).set(buff));
           
        // 2.a _sendRoute(build(_msgTmp, GATEWAY_ADDRESS, MY_NODE_ID, C_SET, V_VAR1, false).set(rssi));
        // 2.b _sendRoute(build(_msgTmp, GATEWAY_ADDRESS, MY_NODE_ID, C_SET, V_VAR5, false).set(rssi));
        // 2.c _sendRoute(build(_msgTmp, GATEWAY_ADDRESS, MY_NODE_ID, C_SET, I_SIGNAL_REPORT_RESPONSE, false).set(rssi));
      
        // 3.a  _sendRoute(build(_msgTmp, GATEWAY_ADDRESS, SENSOR_ID, C_SET, V_VAR1, false).set(rssi));
        // 3.b _sendRoute(build(_msgTmp, GATEWAY_ADDRESS, SENSOR_ID, C_SET, V_VAR5, false).set(rssi));
        // 3.c _sendRoute(build(_msgTmp, GATEWAY_ADDRESS, SENSOR_ID, C_SET, I_SIGNAL_REPORT_RESPONSE, false).set(rssi));
      
                    delete [] buff;
                  }
      
      

      not work..

      jkandasaJ 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @Clone Tv
        last edited by

        @Clone-Tv I think this question is more specific to Mysensors. What is the radio device are you using?

        1 Reply Last reply Reply Quote 0
        • C Offline
          Clone Tv
          last edited by

          It's not about the radio module, it's about the way this topic and its identifiers are sent. I am using nrf24 and Esp. Consider simply sending a statistical value, such as the digit -12. The main thing is that it would appear in the appropriate column in myController.

          jkandasaJ 1 Reply Last reply Reply Quote 0
          • jkandasaJ Offline
            jkandasa @Clone Tv
            last edited by

            @Clone-Tv Can you check this GH issue?
            https://github.com/mycontroller-org/mycontroller-v1-legacy/issues/250

            C 1 Reply Last reply Reply Quote 0
            • C Offline
              Clone Tv @jkandasa
              last edited by

              @jkandasa
              Senks, unfortunately I have not seen this post, but together we found a way out of this task 🙂

              https://forum.mysensors.org/topic/11373/where-to-send-messages-about-battery-charge-and-signal-strength/12

              1 Reply Last reply Reply Quote 1
              • First post
                Last post

              1

              Online

              587

              Users

              529

              Topics

              3.4k

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