5. Services and Characteristics
Service for controlling a device:
E95D0600-251D-470A-A062-FA1922DFA9A
Characteristics:
Temperature: E95D0603-251D-470A-A062-FA1922DFA9A
Humidity: E95D0602-251D-470A-A062-FA1922DFA9A
Relay: E95D0604-251D-470A-A062-FA1922DFA9A
Servo: E95D0605-251D-470A-A062-FA1922DFA9A
5
6. App Inventor 2 with BLE
BLE extension:
http://iot.appinventor.mit.edu/assets/resources/edu.mit.appinventor.ble-20181124.aix
App with demo:
https://roboticafacil.es/facilino/ai2/demos/IoTTutorial.aia
6
7. Temperature and Humidity Monitoring through
BLE
Create temperature and humidity characteristics.
7
E95D0603-251D-470A-A062-
FA1922DFA9A7
Temperature Characteristic:
E95D0602-251D-470A-A062-
FA1922DFA9A7
Humidity Characteristic:
8. Temperature and Humidity through BLE
This code updates temperature and humidity characteristics so that the latest values will be returned by the BLE
server when requested.
8
9. Relay andServo control through BLE
Write characteristics for relay (D7) and servo (D8) :
9
E95D0604-251D-470A-A062-
FA1922DFA9A7
Relay Characteristic:
E95D0605-251D-470A-A062-
FA1922DFA9A7
Servo Characteristic: