diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-05-17 04:06:18 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-05-17 04:06:18 +0300 |
commit | c0111bf4d3dd91f54d27346970e4c6e0a1ce357e (patch) | |
tree | beb15167412bc3ed60e3e11e9076d27ea6f437e5 /platformio/common/libs/mqtt/homekit/mqtt.cpp | |
parent | 893e21cc83ee1ecf236a005f1bf4893448e9b3ea (diff) |
pio: products refactoring
Diffstat (limited to 'platformio/common/libs/mqtt/homekit/mqtt.cpp')
-rw-r--r-- | platformio/common/libs/mqtt/homekit/mqtt.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/platformio/common/libs/mqtt/homekit/mqtt.cpp b/platformio/common/libs/mqtt/homekit/mqtt.cpp new file mode 100644 index 0000000..c2ba293 --- /dev/null +++ b/platformio/common/libs/mqtt/homekit/mqtt.cpp @@ -0,0 +1,18 @@ +#include "./mqtt.h" + +namespace homekit::mqtt { + + const uint8_t MQTT_CA_FINGERPRINT[] = { \ + 0x0e, 0xb6, 0x3a, 0x02, 0x1f, \ + 0x4e, 0x1e, 0xe1, 0x6a, 0x67, \ + 0x62, 0xec, 0x64, 0xd4, 0x84, \ + 0x8a, 0xb0, 0xc9, 0x9c, 0xbb \ + };; + const char MQTT_SERVER[] = "mqtt.solarmon.ru"; + const uint16_t MQTT_PORT = 8883; + const char MQTT_USERNAME[] = CONFIG_MQTT_USERNAME; + const char MQTT_PASSWORD[] = CONFIG_MQTT_PASSWORD; + const char MQTT_CLIENT_ID[] = CONFIG_MQTT_CLIENT_ID; + const char MQTT_SECRET[CONFIG_NODE_SECRET_SIZE+1] = CONFIG_NODE_SECRET; + +} |