Removed a few lines before release of the tutorial publicly.
Not a huge deal, and they are still in the git history, but I wanted to make it clear that the SSID and passkey need to be replaced with the user's own SSID and passkey for their WIFI. They'd probably be unable to connect to mine! Signed-off-by: A.M. Rowsell <amrowsell@frozenelectronics.ca>
This commit is contained in:
parent
0692b1776c
commit
c8bff5cace
1 changed files with 2 additions and 3 deletions
5
mqtt.c
5
mqtt.c
|
@ -418,8 +418,8 @@ void ICACHE_FLASH_ATTR user_init() {
|
|||
uint8_t wifiStatus;
|
||||
LOCAL mqtt_session_t globalSession;
|
||||
LOCAL mqtt_session_t *pGlobalSession = &globalSession;
|
||||
char ssid[32] = "Kwangmyong";
|
||||
char passkey[64] = "vqmfg55020";
|
||||
char ssid[32] = "yourwifissid";
|
||||
char passkey[64] = "yourwifipassword";
|
||||
struct station_config stationConf;
|
||||
gpio_init(); // init gpio so we can use the LED
|
||||
wifi_status_led_install(0, PERIPHS_IO_MUX_GPIO0_U, FUNC_GPIO0); // set GPIO0 as status LED
|
||||
|
@ -430,7 +430,6 @@ void ICACHE_FLASH_ATTR user_init() {
|
|||
wifi_station_set_config_current(&stationConf); // tell it about our config, this auto-connects us as well
|
||||
|
||||
// prepare the TCP/MQTT connection stuff
|
||||
// test server is at 51.15.65.206
|
||||
// Adafruit IO is at 52.5.238.97
|
||||
|
||||
static const char testUser[11] = { 0x4d, 0x72, 0x41, 0x75, 0x72, 0x65, 0x6c, 0x69, 0x75, 0x73, 0x52 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue