GUI-O Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    ESP8266 & Arduino & GUI-O automatic pairing

    Scheduled Pinned Locked Moved
    Frequently Asked Questions (FAQ)
    2
    31
    4.7k
    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.
    • K
      kl3m3n @Bernard
      last edited by

      @Bernard Hi.

      I suggest you try a simple EEPROM write / read example for ESP8266.
      Does this work?

      Best regards,
      kl3m3n

      B 1 Reply Last reply Reply Quote 0
      • B
        Bernard @kl3m3n
        last edited by

        @kl3m3n
        Hello kl3m3n
        As explained at the beginning of our discussions, I do not know the C language at all. I will therefore be unable to write this procedure!
        But on my last pairing attempt, I got to "IoT connection successful" but the blue bar advances for 2 minutes then prompts me to start the process again and what I read on the serial interface of L' IDE and always the same thing as quoted on 09.02.at.9:23 p.m. There is indeed a read-write problem in the ESP! have a good week-end. Bernard

        B 1 Reply Last reply Reply Quote 0
        • B
          Bernard @Bernard
          last edited by

          @kl3m3n
          What I have trouble understanding is that the "Pairing request: { process seems to work since there is a "Pairing response: { , then Pairing succeeded! Copying parameters and scheduling restart . so why " GUI-O parameters not found... initializing...

          K 1 Reply Last reply Reply Quote 0
          • K
            kl3m3n @Bernard
            last edited by

            @Bernard Hi!

            There are numerous examples for EEPROM usage online, e.g.:
            https://www.aranacorp.com/en/using-the-eeprom-with-the-esp8266/

            @Bernard said in ESP8266 & Arduino & GUI-O automatic pairing:

            What I have trouble understanding is that the "Pairing request: { process seems to work since there is a "Pairing response: { , then Pairing succeeded! Copying parameters and scheduling restart . so why " GUI-O parameters not found... initializing...

            The pairing parameters are exchanged successfully, but this does not mean that the actual EEPROM write was done successfully... Yes, I agree that this part of the code is a bit awkwardly written. I will see if I can fix this in a timely manner...

            Best regards,
            kl3m3n

            B 1 Reply Last reply Reply Quote 0
            • B
              Bernard @kl3m3n
              last edited by

              @kl3m3n
              I used the example and I get the same answer:
              Read ID = 18
              Read param = 26.50
              it seems to work...
              in the pairing procedure with GUI-O I don't know how many parameters are exchanged with the ESP but if the LED flashes ~300msec, at 9600 baud they have time to exchange around 950 characters, should that be enough?
              Bernard

              B 1 Reply Last reply Reply Quote 0
              • B
                Bernard @Bernard
                last edited by

                @kl3m3n
                No, its ~250 characteres ......

                B 1 Reply Last reply Reply Quote 0
                • B
                  Bernard @Bernard
                  last edited by

                  @kl3m3n
                  Good morning
                  I uninstalled the Arduino IDE is installed again! and noted in passing that he installed libraries that he had not done during the 1st installation. So everything is back to normal and the wifi connection is working. The next step is to connect everything to the internet ...... is there a good tutorial. to do this ?
                  Thank you very much for your patience and good advice.
                  Kind regards Bernard

                  K 1 Reply Last reply Reply Quote 0
                  • K kl3m3n moved this topic from GUI-O Application Tutorial Series on
                  • K
                    kl3m3n @Bernard
                    last edited by

                    @Bernard Hi.

                    I have moved this thread to FAQ.

                    I am glad you've got it working!

                    @Bernard said in ESP8266 & Arduino & GUI-O automatic pairing:

                    So everything is back to normal and the wifi connection is working.

                    Does this mean the pairing is successful? GUI-O can communicate with Esp8266?

                    @Bernard said in ESP8266 & Arduino & GUI-O automatic pairing:

                    The next step is to connect everything to the internet ...... is there a good tutorial. to do this ?

                    I don't quite understand this... What do you mean by connecting everything to the internet?

                    Best regards,
                    kl3m3n

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      Bernard @kl3m3n
                      last edited by

                      @kl3m3n
                      Good morning kl3m3n
                      Yes, everything works fine! I asked a stupid question, wherever I am I have access to my application at home (at 70, we still ask funny questions!) but I have one that is not stupid: I program with Bascom. My application is saving data to a file and I can't find the correct syntax to write both a constant and a variable to it. For example I want to write the word "Temp:" followed by the "temp_v" variable.
                      Print "@extf1 FAC:1 FP:'"Temp: ; temp_v ; ", " Hum: ; Hum_v; "',"
                      Constant ^^ Var. ^^ Const. ^^ Va. ^^

                      In any case, thank you again for your help and support.
                      Good day Bernard

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        Bernard @Bernard
                        last edited by

                        @kl3m3n
                        Finally I found the answer to my question about the "Constant / Variable" command format. the formula is:

                        Print "@extf1 FAC:1 FP:'Temp:" ; Temperature ; " ,Humi:" ; Humidity ; " ,Press: " ; Pression ; "',"

                        Bernard

                        K 1 Reply Last reply Reply Quote 0
                        • K
                          kl3m3n @Bernard
                          last edited by kl3m3n

                          @Bernard Very nice! 🙂 It is always a good feeling when you solve a problem yourself! 👍

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