فهرست منبع

Version 6.1.1 documentation update, and fixed bug in _wwwServer

platenspeler 5 سال پیش
والد
کامیت
59a41bfbbf
3فایلهای تغییر یافته به همراه10 افزوده شده و 7 حذف شده
  1. 5 2
      CHANGELOG.md
  2. 1 1
      ESP-sc-gway/ESP-sc-gway.ino
  3. 4 4
      ESP-sc-gway/_wwwServer.ino

+ 5 - 2
CHANGELOG.md

@@ -17,13 +17,16 @@ Maintained by Maarten Westenberg (mw12554@hotmail.com)
 # Release Notes
 
 Features release 6.1.1 (November 6, 2019)
-- Added "last seen" for a node. Am overview when each known node has last been seen by the gateway,
+- Added "last seen" for a node. An overview when each known node has last been seen by the gateway,
 	This would mean that a node that does not fit in the regular history overview would still be visible
 	even when it has been seen three days ago.
 - Changed name of the ESP-sc-gway.h file into configGway.h and removed most privacy info. 
   This way, whis fie does need less editing and allows faster releasing. 
- - Also moved sensor.h into configNode.h and devided between both configXXX.h file.
+- Also moved sensor.h into configNode.h and devided between both configXXX.h file.
 - Added the documentation for release 6.1.1 and correctd a number of typos.
+- Corrected bug for ipPrint() in _wwwServer.ino
+- Updated code to read and write config file at the setup() of the gateway, and more often if
+	variables are updated in the web server.
 
 Features release 6.1.0 (October 20, 2019)
 - Changed name of the ESP-sc-gway.h file into configGway.h and removed most privacy info. 

+ 1 - 1
ESP-sc-gway/ESP-sc-gway.ino

@@ -215,8 +215,8 @@ void ICACHE_RAM_ATTR Interrupt_1();
 
 int sendPacket(uint8_t *buf, uint8_t length);				// _txRx.ino forward
 
-void setupWWW();											// _wwwServer.ino forward
 static void printIP(IPAddress ipa, const char sep, String& response);	// _wwwServer.ino
+void setupWWW();											// _wwwServer.ino forward
 
 void SerialTime();											// _utils.ino forward
 void SerialStat(uint8_t intr);								// _utils.ino

+ 4 - 4
ESP-sc-gway/_wwwServer.ino

@@ -42,10 +42,10 @@
 // --------------------------------------------------------------------------------
 static void printIP(IPAddress ipa, const char sep, String& response)
 {
-	response+=(IPAddress)ipa[0]; response+=sep;
-	response+=(IPAddress)ipa[1]; response+=sep;
-	response+=(IPAddress)ipa[2]; response+=sep;
-	response+=(IPAddress)ipa[3];
+	response+=(String)ipa[0]; response+=sep;
+	response+=(String)ipa[1]; response+=sep;
+	response+=(String)ipa[2]; response+=sep;
+	response+=(String)ipa[3];
 }
 
 //