ESPEASY serial port info

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
alba
New user
Posts: 9
Joined: 19 Jul 2018, 06:07

ESPEASY serial port info

#1 Post by alba » 19 Jul 2018, 06:10

Hello,

Beginning on espeasy, I connected an Arduino to a Wemos (Espeasy) via the serial port.
So far no problem. I get the info on the Wesmos (visible in the log), I joined a capture logs.
Now I would like to display information from the arduino on an OLED SSD1306 screen, to make it simple in real time.

Unfortunately, I can not do it, at the same time I do not know if it's possible. Should not I put this info in a variable?

If someone has an idea…

Thank you
Attachments
logs.jpg
logs.jpg (153.21 KiB) Viewed 4669 times

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESPEASY serial port info

#2 Post by grovkillen » 19 Jul 2018, 08:13

You could use rules for that. The event trigger is in your case !Serial#Distance and to display the value on the display you use the corresponding OLED command and use this as your value [!Serial#Distance].

Or you could try and see if it's enough to use the value [!Serial#Distance] in the OLED setup page.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

alba
New user
Posts: 9
Joined: 19 Jul 2018, 06:07

Re: ESPEASY serial port info

#3 Post by alba » 19 Jul 2018, 10:19

Thanks. I try it tonight.
but what is the command to send in the rules to the GPIO?
I try to use the value [!Serial#Distance] in the OLED setup page but it's not working.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESPEASY serial port info

#4 Post by grovkillen » 19 Jul 2018, 10:22

You'll find that info on our wiki page. Come back here if you still struggle with it.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

alba
New user
Posts: 9
Joined: 19 Jul 2018, 06:07

Re: ESPEASY serial port info

#5 Post by alba » 19 Jul 2018, 18:28

I can not do it in both cases.

On !Serial#Distance do

OLED,<5>,<5>,<[!Serial#Distance]>

endon

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESPEASY serial port info

#6 Post by grovkillen » 19 Jul 2018, 18:57

Code: Select all

OLED,<5>,<5>,<[!Serial#Distance]>
Should be

Code: Select all

OLED,5,5,[!Serial#Distance]
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

alba
New user
Posts: 9
Joined: 19 Jul 2018, 06:07

Re: ESPEASY serial port info

#7 Post by alba » 19 Jul 2018, 19:14

Sorry, but it's the same.

I don't understand. I try with a text and it's not working.
I can change the state of a LED

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 36 guests