From a4632bb7ad684a5587f313bd25304609d7c66e16 Mon Sep 17 00:00:00 2001 From: "A.M. Rowsell" Date: Mon, 21 Jan 2019 20:13:12 -0500 Subject: [PATCH] Sanitizing key and wifi Signed-off-by: A.M. Rowsell --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 5fa0189..9d96351 100644 --- a/main.c +++ b/main.c @@ -101,8 +101,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] = "yourwifipass"; struct station_config stationConf; gpio_init(); // init gpio so we can use the LED uart_div_modify(0, UART_CLK_FREQ / 115200); // set UART to 115200 @@ -116,7 +116,7 @@ void ICACHE_FLASH_ATTR user_init() { // Adafruit IO is at 52.5.238.97 static const char ioUser[11] = { 0x4d, 0x72, 0x41, 0x75, 0x72, 0x65, 0x6c, 0x69, 0x75, 0x73, 0x52 }; // MrAureliusR static const uint8_t ioUser_len = 11; - static const char ioKey[32] = { 0x32, 0x63, 0x39, 0x36, 0x65, 0x30, 0x35, 0x61, 0x66, 0x34, 0x35, 0x30, 0x34, 0x31, 0x66, 0x31, 0x38, 0x36, 0x65, 0x62, 0x39, 0x30, 0x33, 0x32, 0x33, 0x31, 0x31, 0x31, 0x61, 0x32, 0x61, 0x38 }; // 2c96e05af45041f186eb90323111a2a8 + static const char ioKey[32] = { }; // use strtoarr.py to generate these static const uint8_t ioKey_len = 32; static const char ioTopic[27] = { 0x4d, 0x72, 0x41, 0x75, 0x72, 0x65, 0x6c, 0x69, 0x75, 0x73, 0x52, 0x2f, 0x66, 0x65, 0x65, 0x64, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x74, 0x6f, 0x70, 0x69, 0x63 }; // MrAureliusR/feeds/testtopic static const uint8_t ioTopic_len = 27;