Praca inz. Mechatronika

Dependencies:   Cayenne-MQTT-mbed mbed X_NUCLEO_IDW01M1v2 NetworkSocketAPI

Files at this revision

API Documentation at this revision

Comitter:
pakito
Date:
Mon Feb 01 10:23:53 2021 +0000
Parent:
8:d37ceed0cf58
Commit message:
Mechatronika K11

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Jan 25 13:31:41 2021 +0000
+++ b/main.cpp	Mon Feb 01 10:23:53 2021 +0000
@@ -9,19 +9,19 @@
 #include "SpwfInterface.h"
 
 // WiFi network info.
-char* ssid = "HUAWEI Mate 10 lite";
-char* wifiPassword = "b080d7069728";
+char* ssid = "TP-LINK_9E4F";
+char* wifiPassword = "81379101";
 
 // Cayenne authentication info. This should be obtained from the Cayenne Dashboard.
-char* username = "842b3540-1ecb-11ea-b301-fd142d6c1e6c";
-char* password = "53d11d4eb1e0e5402158cbb9eae9d32729ef3863";
-char* clientID = "4f12e010-3194-11eb-883c-638d8ce4c23d";
+char* username = "b07cc1e0-6466-11eb-8779-7d56e82df461";
+char* password = "ff7ea6d1ba46ada50b48d8b414e97877977f639e";
+char* clientID = "d0c83450-6468-11eb-b767-3f1a8f1211ba";
 
 SpwfSAInterface interface(D8, D2); // TX, RX
 MQTTNetwork<SpwfSAInterface> network(interface);
 CayenneMQTT::MQTTClient<MQTTNetwork<SpwfSAInterface>, MQTTTimer> mqttClient(network, username, password, clientID);
 
-DigitalOut alarm(PC_15); // P30 sterowanie alarmem
+DigitalOut alarm(PH_0); // P21 sterowanie alarmem
 DigitalIn drzwi1(PC_10); // P56 Drzwi wejściowe
 DigitalIn drzwi2(PC_11); // P57 Drzwi balkonowe