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

    CORE, RS485 and 2x2RELAY...

    M5GO
    2
    4
    811
    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.
    • cryptospokC
      cryptospok
      last edited by

      I have a simple code that displays the date, time, temperature and humidity data acquired by an RS485 device (XY-MD04), but the console keeps displaying the following messages:

      E (18258813) mqtt_client: esp_mqtt_client_init(800): Memory exhausted
      E (18258814) mqtt_client: Client was not initialized
      E (18258815) mqtt_client: Client was not initialized

      I have a CORE, 2x 2RELAY modules, an M5GO module (Port C), an RS485 converter via Port C and an XY-MD04 humidity and temperature sensor via RS485.

      I'm not even using MQTT...

      How do I know the size of my CORE's memory?
      What is the size of the code I can use, and how do I know it?
      My project is based on activating the relays based on RS485 data readings and timing (RTC). With the same code, sometimes it works, sometimes it presents execution errors.

      I am very, very grateful for any help!

      teastainT 1 Reply Last reply Reply Quote 0
      • cryptospokC
        cryptospok
        last edited by

        Thius is the code:

        uiflow2_block_1731773869116.png

        1 Reply Last reply Reply Quote 0
        • teastainT
          teastain @cryptospok
          last edited by teastain

          @cryptospok

          https://docs.m5stack.com/en/core/basic_v2.7

          ESP32-D0WDQ6-V3
          520KB SRAM,
          Flash 16MB

          Cheers, Terry!

          100% M5Stack addict with several drawers full of product!

          cryptospokC 1 Reply Last reply Reply Quote 0
          • cryptospokC
            cryptospok @teastain
            last edited by

            @teastain thank you!

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