GUI-O Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. Sato
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 64
    • Posts 272
    • Best 0
    • Controversial 0
    • Groups 0

    Sato

    @Sato

    0
    Reputation
    18
    Profile views
    272
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Sato Unfollow Follow

    Latest posts made by Sato

    • RE: command that returns the date and time and the day of the week

      Hello @kl3m3n,

      You are right, but i continue have a problem with RTC, the ddd show not the dayofweek. Have you a idea what it is wrong?
      Thank You

      void generateTheGUI {
      getRtc = 0;
      Serial.println("Create command RTC");
      mqttClient.publish(&In[0], "|RTC UID:rtc1 HID:rtc\r\n");
      app_on = 1;
      }

      Main loop {
      //only one time
      if ((app_on == 1) && (getRtc == 0)) {
      //mqttClient.publish(&In[0], "@rtc1\n\r"); ////same output on Serial Monitor
      //mqttClient.publish(&In[0], "@rtc1 RTCF:hh:mm:ss ddd RTCR:5.0\n\r"); //same output on Serial Monitor
      mqttClient.publish(&In[0], "@rtc1 RTCF:'hh:mm:ss ddd' RTCR:1.5\n\r"); //same output on Serial Monitor
      delay(150);
      mqttClient.publish(&In[0], "@rtc1 RTCE:0\n\r"); //Disable RTC ??????????????
      getRtc = 1;
      delay(150);
      }
      }

      void parseGuioMsg(const String &msg) {
      if (msg.startsWith("@rtc1")) {
      Serial.print("Show RTC ");
      Serial.println(msg);
      }
      }

      On Serial Monitor, a few times, like this...
      Show RTC @rtc1 2025/07/07 22:32:31:696 dev:W 0001 x.x uuid:d3f1c986-16b3-47
      End Parse
      Show RTC @rtc1 2025/07/07 22:32:33:696 dev:W 0001 x.x uuid:d3f1c986-16b3-47
      End Parse
      Show RTC @rtc1 2025/07/07 22:32:34:694 dev:W 0001 x.x uuid:d3f1c986-16b3-47
      End Parse

      posted in Comments & Feedback
      S
      Sato
    • RE: command that returns the date and time and the day of the week

      Hello kl3m3n,

      Now i receive the callback @rtc1. The ceation of the command was on the wrong part of the code.

      Sorry and Thank You

      Best regards

      posted in Comments & Feedback
      S
      Sato
    • RE: command that returns the date and time and the day of the week

      Thank you @kl3m3n,

      I've tried this, but it doesn't work, what mistake am I making?

        Serial.print("MQTT CONECTED " );
        Serial.println(mqttClient.state());
        mqttClient.subscribe(&Out[0]); //subscrive topic
      

      mqttClient.publish(&In[0], "RTC UID:rtc1 HID:rtc\r\n");

      Main loop {
      //for testing every 1000ms
      Serial.println("Get rtc ");
      //mqttClient.publish(&In[0], "@rtc1 RTCF:'HH:mm:ss' RTCR:2.0\n\r");
      mqttClient.publish(&In[0], "@rtc1 RTCF:HH:mm:ss RTCR:2.0\n\r");
      }

      void parseGuioMsg(const String &msg) {
      Serial.print("Callback Gui-O ");
      Serial.println(msg); // @init usr: //// here without reaction

      if (msg.startsWith("@rtc1")) {
      Serial.print("Show RTC "); // here without reaction too
      Serial.println(msg);
      }
      }

      posted in Comments & Feedback
      S
      Sato
    • RE: command that returns the date and time and the day of the week

      Hello @kl3m3n,

      Thanks, after all this already exists in Gui-O, Real-time clock (RTC)

      I should have paid more attention when reading the manual, I'm sorry to be bothering you with something you've already implemented and from what I can see, a long time ago.

      In the next few days I'll check it out and use it to get the MCP7940 right.

      Thank you
      Best regards

      posted in Comments & Feedback
      S
      Sato
    • RE: command that returns the date and time and the day of the week

      Hello @kl3m3n,

      Sorry, that's now correct

      2025-07-05 12:45:01 6

      Sunday is weekday 7
      Monday is weekday 1

      posted in Comments & Feedback
      S
      Sato
    • command that returns the date and time and the day of the week

      Hi @kl3m3n, I hope you're well.

      As I'm using GPRS and need to save data, I didn't want to have to access NTP servers to set the local RTC.

      As you have already done with the "ping" command, is it possible to create a command that returns the date and time and the day of the week, such as: 2025-07-03 5

      Thanks
      Best regards

      posted in Comments & Feedback
      S
      Sato
    • RE: On close with > clear some flags

      Hello @kl3m3n,

      You are the Best. Your idea with @ping works very well

      Thank You

      Best regards

      posted in Comments & Feedback
      S
      Sato
    • RE: On close with > clear some flags

      Hello @kl3m3n,

      Sorry, I meant that when Esp lose the connection to the Internet, it restarts and the flags are cleared.

      Your "ping" idea, as allways, is good, I'll check it in the Guio Manual and implement it, it should work. I'll give you feedback when I see results.

      Thank you
      Best regards

      posted in Comments & Feedback
      S
      Sato
    • RE: On close with > clear some flags

      Hello @kl3m3n,

      I use GPRS, and there's the rub!
      As I want to dynamically evaluate the RF signal strength, I have to be careful not to consume unnecessary data.
      Normally, when I connect to an Esp device, during the creation of the Guio graphical environment, I have already loaded the graph corresponding to the respective signal strength. I then set a flag that allows me to continuously evaluate which graph to load if the value previously read is different from the current one, i.e. while the Guio app is connected to the device, this flag remains and the intensity reading is dynamic.
      When I close the app via the Exit button I created, I clear that
      flag and the Esp no longer enters that void, so it doesn't consume unnecessary sends to load those graphs that are no longer needed. But if I close the app via the “>” button, I don't see how I can clear this flag because I think it's in Andoid and not Guio issue, but I could be wrong.

      If Guio loses its internet connection, after a short time the Esp restarts and all the flags are cleared.

      Best regards

      posted in Comments & Feedback
      S
      Sato
    • RE: On close with > clear some flags

      Hi @kl3m3n,

      I'm fine too, thanks.

      As I said, if I close the app via the button I created for it, then clear the flags I need and then shut it down, it works fine. The other issue is that if, for whatever reason, the app is closed by > on the Guio, then I can't clear the flags I need on the microcontroller.
      I don't see if and how it's possible in this situation to clear the flags before shutting down.

      Thanks
      Sato

      posted in Comments & Feedback
      S
      Sato