-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from kayno/master
mqtt example: roomTempChangedCallback and settings header file
- Loading branch information
Showing
2 changed files
with
45 additions
and
38 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
examples/mitsubishi_heatpump_mqtt_esp8266/mitsubishi_heatpump_mqtt_esp8266.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// wifi settings | ||
const char* ssid = "<YOUR WIFI SSID GOES HERE>"; | ||
const char* password = "<YOUR WIFI PASSWORD GOES HERE>"; | ||
|
||
// mqtt server settings | ||
const char* mqtt_server = "<YOUR MQTT BROKER IP/HOSTNAME GOES HERE>"; | ||
const int mqtt_port = 1883; | ||
const char* mqtt_username = "<YOUR MQTT USERNAME GOES HERE>"; | ||
const char* mqtt_password = "<YOUR MQTT PASSWORD GOES HERE>"; | ||
|
||
// mqtt client settings | ||
const char* client_id = "heatpump-controller-1"; // Must be unique on the MQTT network | ||
const char* heatpump_topic = "heatpump"; | ||
const char* heatpump_set_topic = "heatpump/set"; | ||
const char* heatpump_temperature_topic = "heatpump/temperature"; | ||
const char* heatpump_debug_topic = "heatpump/debug"; | ||
const char* heatpump_debug_set_topic = "heatpump/debug/set"; | ||
|
||
// pinouts | ||
const int redLedPin = 0; // Onboard LED = digital pin 0 (red LED on adafruit ESP8266 huzzah) | ||
const int blueLedPin = 2; // Onboard LED = digital pin 0 (blue LED on adafruit ESP8266 huzzah) | ||
|
||
// sketch settings | ||
const unsigned int SEND_ROOM_TEMP_INTERVAL_MS = 60000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters