Load current information from arduino to MLP

Support forum for MegunoLink
Post Reply
eusaki
Posts: 3
Joined: Wed Jul 10, 2019 5:39 am

Sun Jul 14, 2019 7:06 pm

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
philr
Posts: 292
Joined: Mon May 26, 2014 10:58 am

Mon Jul 22, 2019 5:41 am

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 302 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
Post Reply