🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Stack LoRa and ThingSpeak

    Scheduled Pinned Locked Moved Arduino
    esp32c++arduino
    3 Posts 2 Posters 9.3k 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.
    • T Offline
      thenecniv
      last edited by

      Hello,

      I am trying to upload data to thingspeak that is being received from the LoRa Unit via Arduino, but so far all I have been able to upload are data that is irrelevant.

      The Arduino example shows that on the receiving end of LoRa, there is a line where the M5 read the packet sent, but simply uploading the said packet does not work, and ends up with 48/50.

      Said Code section is :
      while (LoRa.available()) {
      char ch = (char)LoRa.read();
      Serial.print(ch);
      M5.Lcd.print(ch);
      int x = ThingSpeak.writeField(myChannelNumber, 1, ch, myWriteAPIKey);
      if(x == 200){
      Serial.println("Channel update successful.");
      delay(10000);
      }
      else{
      Serial.println("Problem updating channel. HTTP error code " + String(x));
      delay(10000);
      }

      Is there anyway to upload that data? Thanks!

      1 Reply Last reply Reply Quote 0
      • m5stackM Online
        m5stack
        last edited by

        i have not idea. we never try upload data to thingspeak before. and share your application logic and your actual use functions . maybe another people can help you. thanks

        1 Reply Last reply Reply Quote 0
        • T Offline
          thenecniv
          last edited by

          So, I have 2 m5stack core with me.

          My idea is to have these 2(or potentially more) to communicate with each other via LoRa, one to be a sensor node, and another acts as a receiver.

          The receiving node will then upload the data received from the sensing node to thingspeak.

          The components used in this system is the ENV sensor, and the LoRa modules.

          I hope this explains what I am trying to do.

          1 Reply Last reply Reply Quote 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
          • First post
            Last post