start mqtt stuff

This commit is contained in:
2020-11-10 15:56:07 +01:00
parent 8a36a3da82
commit 662a440179
6 changed files with 129 additions and 3 deletions

View File

@ -20,7 +20,7 @@ wiz_NetInfo netInfo = {
#define DHCP_BUFFER_SIZE 2048
static uint8_t dhcpBuffer[DHCP_BUFFER_SIZE];
const uint8_t DHCP_SOCK = 0;
extern const uint8_t DHCP_SOCK;
static bool networkAvailable = false;
@ -75,7 +75,7 @@ static void wizDHCPAssign() {
coloredMsg(LOG_GREEN, "wizda, DNS: %d.%d.%d.%d", netInfo.dns[0], netInfo.dns[1], netInfo.dns[2], netInfo.dns[3]);
wizchip_setnetinfo(&netInfo);
coloredMsg(LOG_RED, "wizda, set netinfo again");
coloredMsg(LOG_GREEN, "wizda, set netinfo again");
networkAvailable = true;
coloredMsg(LOG_GREEN, "wizda, network is available");