This commit is contained in:
2019-09-15 08:01:50 +03:00
parent 21c09b2588
commit 9a0cff1f63
3 changed files with 3 additions and 2 deletions

1
lighthub/monitor.bat Normal file
View File

@@ -0,0 +1 @@
pio device monitor -b 115200

View File

@@ -377,7 +377,7 @@ void printIPAddress(IPAddress ipAddress) {
}
char* setTopic(char* buf, int8_t buflen, topicType tt, char* suffix)
char* setTopic(char* buf, int8_t buflen, topicType tt, const char* suffix)
{
aJsonObject *_root = NULL;
aJsonObject *_l2 = NULL;

View File

@@ -55,7 +55,7 @@ void ReadUniqueID( uint32_t * pdwUniqueID );
int inet_aton(const char* aIPAddrString, IPAddress& aResult);
char *inet_ntoa_r(IPAddress addr, char *buf, int buflen);
void printIPAddress(IPAddress ipAddress);
char* setTopic(char* buf, int8_t buflen, topicType tt, char* suffix = NULL);
char* setTopic(char* buf, int8_t buflen, topicType tt, const char* suffix = NULL);
void printUlongValueToStr(char *valstr, unsigned long value);
void scan_i2c_bus();
void softRebootFunc();