Page 1 of 1

Load current information from arduino to MLP

Posted: Sun Jul 14, 2019 7:06 pm
by eusaki
hi,

I have an interface of MLP to control a couple of arduinos ( the same sketch and the same interface for both of them), but every time I load MLP and connect to arduino, I get the default information or the last modified values in the interface.

Can I get load the current values form the current arduino that I'm connected to?

thanks for your help

Re: Load current information from arduino to MLP

Posted: Mon Jul 22, 2019 5:41 am
by philr
Hi Eusaki, you would need to basically send all that information from your arduino on bootup. One way to do that is to use the "SerialConnection" object in the interface panel (see picture below). This sends a message to your arduino when a connection is established. You could use this to send a message to your arduino requesting it to send commands back to MegunoLink to update the interface to that Arduinos current configuration.
MegunoLink Send After Connection.png
MegunoLink Send After Connection.png (4.96 KiB) Viewed 7076 times
One thing to remember is that the arduino takes a few seconds to boot up when reset so make sure you set a suitable delay in the "SerialConnection" object.

Cheers
Phil