Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: QEI MFRC522 HTS221 IoTKit BMP180 MQTT
Fork of MQTTPublish by
Diff: main.cpp
- Revision:
- 23:4d8f3061890e
- Parent:
- 22:b671b01d00f9
- Child:
- 24:d2f0599798a1
--- a/main.cpp Sun Sep 02 16:20:11 2018 +0000 +++ b/main.cpp Sun Sep 02 16:32:36 2018 +0000 @@ -98,10 +98,11 @@ publish( mqttNetwork, client, topicTEMP ); // alert Tuer offen + printf( "Hall %4.4f, alert %d\n", hallSensor.read(), alert.read() ); if ( hallSensor.read() > 0.6f ) { // nur einmal Melden!, bis Reset - if ( alert == 0 ) + if ( alert.read() == 0 ) { sprintf( buf, "door open" ); message.payload = (void*) buf;