Embedded linux IoT
1. Write a program that uses Flask, that models the controller for an electric motor that is either running or stopped. When the program starts the state is, stops. The controller responds to the following path rules. o 7-Return the string “running'”or ‘sopped’ to indicate motor state o/start/-If motor is stopped then return “starting” and change the state to running. Otherwise, return, “already running”. /stop/ – If motor is running then return “stopping”
OR
OR