This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:iot-open:remotelab:itt:controlmodule [2018/12/06 06:08] – rim.puks | en:iot-open:remotelab:itt:controlmodule [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Controller module basics===== | + | ===== ITT Controller module basics ===== |
==== Introduction | ==== Introduction | ||
- | This chapter describes the IOT ITT controller module. | + | This chapter describes the IOT ITT controller module. |
{{: | {{: | ||
Line 17: | Line 17: | ||
{{: | {{: | ||
- | ===== Specifications===== | + | ==== Specifications==== |
* 11 digital input/ | * 11 digital input/ | ||
* Micro USB connector | * Micro USB connector | ||
Line 24: | Line 24: | ||
* 4 MB flash-memory | * 4 MB flash-memory | ||
- | ===== Electrical connection | + | ==== Electrical connection ==== |
Modules are using following I/O ports | Modules are using following I/O ports | ||
Line 34: | Line 34: | ||
* | * | ||
- | === Actuators === | + | ==== Actuators |
As this is the controller module, no actuators or sensors are installed to it. | As this is the controller module, no actuators or sensors are installed to it. | ||
- | === Software, libraries and externals === | + | ==== Software, libraries and externals |
- | To program the controller module ITTIoT | + | To program the controller module ITTIoT |
- | <table Ref.Tab.1.1> | ||
- | < | ||
^ Method ^ Description ^ | ^ Method ^ Description ^ | ||
| iot.setup() | Does the operations necessary for setting up the ITTIoT framework and MQTT communications.| | | iot.setup() | Does the operations necessary for setting up the ITTIoT framework and MQTT communications.| | ||
| iot.printConfig() | Prints the module configuration to the serial port.| | | iot.printConfig() | Prints the module configuration to the serial port.| | ||
- | | iot.handle() | Does the background work necessary for the communications to work. For example checks if the communication with the broker is still working and checks if any new messages have been received. This method has to be called periodically.| | + | | iot.handle() | Does the background work necessary for the communications to work. For example, checks if the communication with the broker is still working and checks if any new messages have been received. This method has to be called periodically.| |
- | | iot.connected() | A method defined by the user that is called when the connection with the MQTT broker has been established. It is primarly | + | | iot.connected() | A method defined by the user that is called when the connection with the MQTT broker has been established. It is primarily |
| iot.subscribe(String topic) | Subscribes to the topic specified as the operand. For example iot.subscribe(" | | iot.subscribe(String topic) | Subscribes to the topic specified as the operand. For example iot.subscribe(" | ||
- | | iot.received(String topic, String msg) | User defined method that is called when the controller receives a message from one the subscribed topics. The topic from which the message is received is the string " | + | | iot.received(String topic, String msg) | User-defined method that is called when the controller receives a message from one of the subscribed topics. The topic from which the message is received is the string " |
| iot.publishMsgTo(String topic, String msg, bool retain) | Publishes the message " | | iot.publishMsgTo(String topic, String msg, bool retain) | Publishes the message " | ||
- | </ | ||
- | === Communication === | + | |
+ | ==== Communication | ||
The user can connect to and program this controller using the Distancelab environment. | The user can connect to and program this controller using the Distancelab environment. | ||
- | === Limits === | + | ==== Limits |
- | At the same time one user can program the controller. But all users connected to the Distancelab MQTT broker can subscribe to and publish messages to the topics. | + | At the same time, one user can program the controller. But all users connected to the Distancelab MQTT broker can subscribe to and publish messages to the topics. |