Explorar o código

Version 6.1.1 documentation update, and fixed bug in _wwwServer

platenspeler %!s(int64=5) %!d(string=hai) anos
pai
achega
59a41bfbbf
Modificáronse 3 ficheiros con 10 adicións e 7 borrados
  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
 # Release Notes
 
 
 Features release 6.1.1 (November 6, 2019)
 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
 	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.
 	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. 
 - 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. 
   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.
 - 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)
 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. 
 - 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
 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
 static void printIP(IPAddress ipa, const char sep, String& response);	// _wwwServer.ino
+void setupWWW();											// _wwwServer.ino forward
 
 
 void SerialTime();											// _utils.ino forward
 void SerialTime();											// _utils.ino forward
 void SerialStat(uint8_t intr);								// _utils.ino
 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)
 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];
 }
 }
 
 
 //
 //