3 years, 2 months ago.

is it possible to Interrupt a program in mbed from another server/webserver?

Hello everyone, i'm still new in mbed.

i've managed to use interrupt but the input used to interrupt is the switches. refer here:https://os.mbed.com/users/daklowprofile/code/traffic_light_gate_pj/. Just a simple traffic light simulation with interrupt switches to control/change one way to green (and other to red) .

Now im wondering is possible for the mbed to accept string from any external server to stop the running program for a while, then run another function? is it possible? Im planning to intterupt with a string (http::get/mqtt) send by the server to the mbed.

I am kinda clueless because the InterruptIN library can only accept input from pin not from serial (not sure tho). Can anyone guide me on this? or give me some links to read or gain more info on this?

Thanks in advance.

Regards

Zar

Be the first to answer this question.