September 2019 Update

New! We're moving to the new forum!

ALL new Blog posts will be on the forum.

Please join us there.

This Blog will no longer be updated...

Sunday, June 2, 2019

Continue the Code Review

It's been half a week, I'm continuing with my so called "Code Review" which has basically turned into "Go through all the code, and clean it up, make it more efficient, use less memory, and move more methods into the Utility library".

I've also standardized the boot up screens displayed to the Serial monitors:

=> Grow by Wire Sensor Module
=> Mega 2560 Code Compiled on Jun  1 2019 at 06:53:57
============================================================================
=> You have 10 seconds to enter a C to Configure credentials
=> Times Up!
============================================================================
[M??] 1970/01/01 00:00:14 > ESP8266 Code Compiled on Jun  1 2019 at 05:15:48
[M03] 2019/06/02 10:40:42 >   Free Memory : 1.20KB
[M03] 2019/06/02 10:40:42 >          SSID : odam2k_primus
[M03] 2019/06/02 10:40:42 >     Host Name : SensorModule3
[M03] 2019/06/02 10:40:42 >   MAC Address : CC:50:E3:0C:7C:07
[M03] 2019/06/02 10:40:42 >   IP Address  : 192.168.1.23
[M03] 2019/06/02 10:40:42 >   Subnet Mask : 255.255.255.0
[M03] 2019/06/02 10:40:42 >    Gataway IP : 192.168.1.1
[M03] 2019/06/02 10:40:42 >   RSSI        : -58dBm (84%)
[M03] 2019/06/02 10:40:42 >   Sensors     : 0
----------------------------------------------------------------------------



All modules now use the configuration screen to set and store connection related credentials so nothing is hardcoded, with the exception of the Blynk local Server IP and Port, which I will store in the MySql Database.

No comments:

Post a Comment

Any comments deemed off topic or offensive will be removed