WiFi events and strange going on's

Oh.....

So I need to look at the mosquitto log on the BROKER machine.....

Right!

Hey, sorry.

Found it.

Standby for an exert.

This is the last bit....

1561921635: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561923437: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561925239: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561926617: Client TimePi has exceeded timeout, disconnecting.
1561926617: Socket error on client TimePi, disconnecting.
1561926618: New connection from 192.168.1.4 on port 1883.
1561926618: New client connected from 192.168.1.4 as TimePi (c1, k15).
1561927041: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561928843: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561929092: New connection from 192.168.0.6 on port 1883.
1561929092: New connection from 192.168.0.6 on port 1883.
1561929092: New client connected from 192.168.0.6 as mqtt_2d1fe6cd.1f0daa (c1, k60).
1561929092: New client connected from 192.168.0.6 as mqtt_2417a7a1.63cde8 (c1, k60).
1561930645: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561932447: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561933750: Client mqtt_2d1fe6cd.1f0daa disconnected.
1561933750: Client mqtt_2417a7a1.63cde8 disconnected.
1561934249: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561936051: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561937853: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561939655: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561941457: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561943259: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561945061: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561946863: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561948664: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561950465: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561952267: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561954069: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561955871: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561957673: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561959475: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561961276: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561963077: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561964879: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561966680: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561968481: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561970282: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561972083: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561973884: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561975685: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561977487: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561979025: New connection from 192.168.0.6 on port 1883.
1561979025: New connection from 192.168.0.6 on port 1883.
1561979025: New client connected from 192.168.0.6 as mqtt_f011c06c.8cd79 (c1, k60).
1561979025: New client connected from 192.168.0.6 as mqtt_c01c45a7.08c018 (c1, k60).
1561979289: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561980404: Client TimePi has exceeded timeout, disconnecting.
1561980404: Socket error on client TimePi, disconnecting.
1561980408: New connection from 192.168.1.4 on port 1883.
1561980408: New client connected from 192.168.1.4 as TimePi (c1, k15).
1561981091: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561982893: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561983002: Client mqtt_f011c06c.8cd79 disconnected.
1561983002: Client mqtt_c01c45a7.08c018 disconnected.
1561984695: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561986497: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561988298: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561990100: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561991901: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561993703: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561995505: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561997307: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1561999109: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562000910: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562002711: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562004512: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562006313: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562008114: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562009916: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562011717: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562013518: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562015319: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562015963: New connection from 192.168.0.6 on port 1883.
1562015963: New connection from 192.168.0.6 on port 1883.
1562015963: New client connected from 192.168.0.6 as mqtt_453e4e8c.c4d1b (c1, k60).
1562015963: New client connected from 192.168.0.6 as mqtt_3ccdf143.9c3ede (c1, k60).
1562017120: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562018355: Client TimePi has exceeded timeout, disconnecting.
1562018355: Socket error on client TimePi, disconnecting.
1562018362: New connection from 192.168.1.4 on port 1883.
1562018362: New client connected from 192.168.1.4 as TimePi (c1, k15).
1562018921: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562020722: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562022524: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562024326: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562025268: Socket error on client TimePi, disconnecting.
1562025284: New connection from 192.168.1.4 on port 1883.
1562025284: New client connected from 192.168.1.4 as TimePi (c1, k15).
1562026128: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562027930: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562028405: Client mqtt_453e4e8c.c4d1b disconnected.
1562028405: Client mqtt_3ccdf143.9c3ede disconnected.
1562029732: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562031534: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562032866: New connection from 192.168.0.6 on port 1883.
1562032866: New connection from 192.168.0.6 on port 1883.
1562032866: New client connected from 192.168.0.6 as mqtt_8a801c8f.310a8 (c1, k60).
1562032866: New client connected from 192.168.0.6 as mqtt_7ab6652.66bac9c (c1, k60).
1562033336: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562035138: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562035367: Client mqtt_8a801c8f.310a8 disconnected.
1562035367: Client mqtt_7ab6652.66bac9c disconnected.
1562036940: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562038742: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562040365: New connection from 192.168.0.6 on port 1883.
1562040365: New connection from 192.168.0.6 on port 1883.
1562040365: New client connected from 192.168.0.6 as mqtt_dc2d7752.804718 (c1, k60).
1562040365: New client connected from 192.168.0.6 as mqtt_c4b092be.004f6 (c1, k60).
1562040543: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562042345: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562043994: Client mqtt_dc2d7752.804718 disconnected.
1562043994: Client mqtt_c4b092be.004f6 disconnected.
1562044146: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562045174: New connection from 192.168.0.6 on port 1883.
1562045174: New connection from 192.168.0.6 on port 1883.
1562045174: New client connected from 192.168.0.6 as mqtt_9696fd5a.98e1a (c1, k60).
1562045174: New client connected from 192.168.0.6 as mqtt_62eeaa9d.71bcc4 (c1, k60).
1562045947: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562047748: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562049550: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562051352: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562053154: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562054955: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562056757: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562057696: Client mqtt_9696fd5a.98e1a disconnected.
1562057696: Client mqtt_62eeaa9d.71bcc4 disconnected.
1562058559: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562060360: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562062000: New connection from 192.168.0.6 on port 1883.
1562062000: New connection from 192.168.0.6 on port 1883.
1562062000: New client connected from 192.168.0.6 as mqtt_b9eafb6a.ba3458 (c1, k60).
1562062000: New client connected from 192.168.0.6 as mqtt_2b6ef007.e296b (c1, k60).
1562062161: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562063963: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562065764: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562067565: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562068917: Client mqtt_b9eafb6a.ba3458 disconnected.
1562068917: Client mqtt_2b6ef007.e296b disconnected.
1562069366: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562071167: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562072968: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562074769: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562076570: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562078372: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562078991: Client TimePi has exceeded timeout, disconnecting.
1562078991: Socket error on client TimePi, disconnecting.
1562078997: New connection from 192.168.1.4 on port 1883.
1562078997: New client connected from 192.168.1.4 as TimePi (c1, k15).
1562080174: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562080378: Socket error on client TimePi, disconnecting.
1562080389: New connection from 192.168.1.4 on port 1883.
1562080389: New client connected from 192.168.1.4 as TimePi (c1, k15).
1562081976: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562083778: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562085580: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562087382: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562089184: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562090986: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562092788: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562094589: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562096390: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562098192: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562099993: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562101794: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562103596: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562105397: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562107199: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562109001: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562110802: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562112603: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562114404: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562116205: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562118006: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562119807: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562121608: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562123409: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562123540: New connection from 192.168.0.6 on port 1883.
1562123540: New connection from 192.168.0.6 on port 1883.
1562123540: New client connected from 192.168.0.6 as mqtt_8b8e7f47.a1e9f (c1, k60).
1562123540: New client connected from 192.168.0.6 as mqtt_b80dc639.628868 (c1, k60).
1562124969: Client mqtt_8b8e7f47.a1e9f disconnected.
1562124969: Client mqtt_b80dc639.628868 disconnected.
1562125210: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562126788: Socket error on client TimePi, disconnecting.
1562126806: New connection from 192.168.1.4 on port 1883.
1562126806: New client connected from 192.168.1.4 as TimePi (c1, k15).
1562127012: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562128814: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562130615: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562132416: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562132787: New connection from 192.168.0.6 on port 1883.
1562132787: New connection from 192.168.0.6 on port 1883.
1562132787: New client connected from 192.168.0.6 as mqtt_f3e4d556.9a71e8 (c1, k60).
1562132787: New client connected from 192.168.0.6 as mqtt_74ebe5d.2a8181c (c1, k60).
1562134218: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562136020: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562137822: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562138594: Warning: Received PUBREL from mqtt_db2114d5.cf8e18 for an unknown packet identifier 41516.
1562138594: Warning: Received PUBREL from mqtt_db2114d5.cf8e18 for an unknown packet identifier 41517.
1562138594: Warning: Received PUBREL from mqtt_db2114d5.cf8e18 for an unknown packet identifier 41518.
1562138594: Warning: Received PUBREL from mqtt_db2114d5.cf8e18 for an unknown packet identifier 41519.
1562138594: Warning: Received PUBREL from mqtt_db2114d5.cf8e18 for an unknown packet identifier 41520.
1562138594: Warning: Received PUBREL from mqtt_db2114d5.cf8e18 for an unknown packet identifier 41521.
1562139624: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562141425: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562143227: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562145029: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562146831: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562147858: Client mqtt_f3e4d556.9a71e8 disconnected.
1562147858: Client mqtt_74ebe5d.2a8181c disconnected.
1562148632: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562150433: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562152234: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562153061: New connection from 192.168.0.6 on port 1883.
1562153061: New client connected from 192.168.0.6 as mqtt_dbecfaba.398c68 (c1, k60).
1562153061: New connection from 192.168.0.6 on port 1883.
1562153061: New client connected from 192.168.0.6 as mqtt_1730b2a7.9165cd (c1, k60).
1562154035: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562155837: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562157638: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562158203: Client mqtt_dbecfaba.398c68 disconnected.
1562158203: Client mqtt_1730b2a7.9165cd disconnected.
1562159439: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562161240: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562162071: Outgoing messages are being dropped for client mqtt_b48403d5.afbf8.
1562162090: Client mqtt_b48403d5.afbf8 has exceeded timeout, disconnecting.
1562162090: Socket error on client mqtt_b48403d5.afbf8, disconnecting.
1562163042: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562164844: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562166646: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562168448: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562170249: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562172051: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562173852: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562175653: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562177454: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562179256: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562181058: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562182859: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562184661: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562186462: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562188264: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562188977: New connection from 192.168.0.6 on port 1883.
1562188977: New connection from 192.168.0.6 on port 1883.
1562188977: New client connected from 192.168.0.6 as mqtt_753c66a8.ff2c88 (c1, k60).
1562188977: New client connected from 192.168.0.6 as mqtt_18687f5c.87de51 (c1, k60).
1562189130: New connection from 192.168.0.93 on port 1883.
1562189135: New client connected from 192.168.0.93 as mqtt_f76955bf.c49358 (c1, k60).
1562190065: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562190327: Client mqtt_903a5832.7be0a8 disconnected.
1562190327: Client mqtt_b656c001.3ddbf disconnected.
1562191122: Client mqtt_f76955bf.c49358 disconnected.
1562191123: New connection from 192.168.0.93 on port 1883.
1562191123: New client connected from 192.168.0.93 as mqtt_dbabf039.34058 (c1, k60).
1562191866: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562193668: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562195355: Outgoing messages are being dropped for client mqtt_dbabf039.34058.
1562195375: Client mqtt_dbabf039.34058 has exceeded timeout, disconnecting.
1562195375: Socket error on client mqtt_dbabf039.34058, disconnecting.
1562195442: New connection from 192.168.0.93 on port 1883.
1562195447: New client connected from 192.168.0.93 as mqtt_9d2bf19c.04ffb (c1, k60).
1562195470: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562195592: Client mqtt_753c66a8.ff2c88 disconnected.
1562195592: Client mqtt_18687f5c.87de51 disconnected.
1562197272: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562199074: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562200876: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562202678: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562204480: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562206281: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562208082: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562209884: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562211685: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562213486: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562214901: New connection from 192.168.0.6 on port 1883.
1562214901: New connection from 192.168.0.6 on port 1883.
1562214901: New client connected from 192.168.0.6 as mqtt_afe7d5f8.1fca18 (c1, k60).
1562214901: New client connected from 192.168.0.6 as mqtt_3a9ec956.d869c6 (c1, k60).
1562215287: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562217088: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562218889: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562220691: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562222492: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562224294: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562224436: Client mqtt_afe7d5f8.1fca18 disconnected.
1562224436: Client mqtt_3a9ec956.d869c6 disconnected.
1562226095: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562227896: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562229698: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562230203: New connection from 192.168.0.6 on port 1883.
1562230203: New connection from 192.168.0.6 on port 1883.
1562230203: New client connected from 192.168.0.6 as mqtt_81149f7d.fb499 (c1, k60).
1562230203: New client connected from 192.168.0.6 as mqtt_67e2e959.d7c888 (c1, k60).
1562231500: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562233302: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562235103: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562236905: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562238706: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562240508: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562242310: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562244112: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562245175: Client mqtt_81149f7d.fb499 disconnected.
1562245175: Client mqtt_67e2e959.d7c888 disconnected.
1562245914: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562247715: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562249516: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562251317: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562253119: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562254920: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562256721: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562258522: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562260323: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562262124: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562263925: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562265727: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562267528: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562269329: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562271130: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562272932: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562273084: Client TimePi has exceeded timeout, disconnecting.
1562273084: Socket error on client TimePi, disconnecting.
1562273088: New connection from 192.168.1.4 on port 1883.
1562273088: New client connected from 192.168.1.4 as TimePi (c1, k15).
1562274644: New connection from 192.168.0.6 on port 1883.
1562274644: New client connected from 192.168.0.6 as mqtt_9e667690.eb39d8 (c1, k60).
1562274644: New connection from 192.168.0.6 on port 1883.
1562274644: New client connected from 192.168.0.6 as mqtt_586c13c2.b1595c (c1, k60).
1562274734: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562275027: Client mqtt_9e667690.eb39d8 disconnected.
1562275027: Client mqtt_586c13c2.b1595c disconnected.
1562276536: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562278338: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562280140: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562281942: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562282242: Client TimePi has exceeded timeout, disconnecting.
1562282242: Socket error on client TimePi, disconnecting.
1562282247: New connection from 192.168.1.4 on port 1883.
1562282247: New client connected from 192.168.1.4 as TimePi (c1, k15).
1562283744: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562285546: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562287348: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562289150: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562289693: New connection from 192.168.1.4 on port 1883.
1562289693: Client TimePi already connected, closing old connection.
1562289693: Client TimePi disconnected.
1562289693: New client connected from 192.168.1.4 as TimePi (c1, k15).
1562290951: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562292752: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562293214: New connection from 192.168.0.6 on port 1883.
1562293214: New connection from 192.168.0.6 on port 1883.
1562293214: New client connected from 192.168.0.6 as mqtt_5c5e3b89.e894b4 (c1, k60).
1562293214: New client connected from 192.168.0.6 as mqtt_cf99ea6a.015e88 (c1, k60).
1562294553: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562295142: Client mqtt_5c5e3b89.e894b4 disconnected.
1562295142: Client mqtt_cf99ea6a.015e88 disconnected.
1562296354: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562298155: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562299957: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562301758: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562303559: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562305360: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562307161: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562307500: New connection from 192.168.0.6 on port 1883.
1562307500: New connection from 192.168.0.6 on port 1883.
1562307500: New client connected from 192.168.0.6 as mqtt_98f8107d.e7ce6 (c1, k60).
1562307500: New client connected from 192.168.0.6 as mqtt_b8710453.089e18 (c1, k60).
1562308962: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562310763: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562312564: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562312941: New connection from 192.168.0.6 on port 1883.
1562312941: New client connected from 192.168.0.6 as mqtt-explorer-f57e581c (c1, k60).
1562314365: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1562316166: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.

I can see it is disconnecting a few times (you can see one near the bottom now).
But the machine hasn't rebooted lately.

Uptime 1 day 10 hours so far.
But it has reported TelePi has shutdown two times today when it hasn't hung or rebooted.

The BROKER is on 0.99.

I was.... (I see you are replying so I'll stop typing.)

If you mean you have received Will/Birth messages for that device, then no, that does not mean it has rebooted. It means its network connection has dropped temporarily.

Declaration:

When I was told to "look at the mosquitto log", I thought (foolishly) that the log would be on the machine which I am making the enquiry.

Rather I needed to:
"Look at the mosquitto log on the broker's machine".

Got it now for future reference.

Yes, I agree.

That WiFi link is (I'm making sure I type the right thing now.) from the RPZ (aka TelePi) to a REAL WAP.
Then Cat-5 to another RPI (2b aka TimePi) where the broker is.

So given: TelePi is receiving temperature and humidity every ... 10 seconds and every 18 seconds it is transmitting it's CPU temperature and CPU load back to the broker.....

The timeout is (Sorry: keep alive) 60 seconds. (that's just over 3 cycles of transmission) the MQTT wouldn't really have the chance to say: "I'm not seeing any data flow, so I'll shut down."

And yet it seems to be doing that.

This isn't really the bigger problem. But it has tweaked my curiosity/interest to understand why it is doing that.

Am I (yet again) missing something?

And again sorry to all for the little "catch/chase" at the start with the log file. My fault - I guess.

My bad. I got confused to where the file is/was.....

As I have posted: Sorry. I now know for next time.

But thanks for pointing out that as it then flagged the machine where I should have been looking.
(Live and learn)

Just remember you should probably only have ONE MQTT broker on a home network, and if you want to look at the log for that broker, its stored on the machine where the broker is running.

Yeah, I get that I should only have one broker.

I just didn't equate "look at the log file" to be the brokers log file.

Though I did say I now know that.

Which is the question I asked some time ago about any other devices (like APs) being "in between" the two rpis.

Since there are I would do some detective work based on that AP. Check its logs, change frequencies (channels) on it, move it to a different location etc. Even take it out of the loop completely, if you are able.

:boom: And of course, the first and most obvious thing to do, would be to reboot the AP.

Hey Bobo.

Ok. I appreciate the reply.

To put all the cards on the table: I may have messed up the initial layout. RPZ --> RPI via wifi.
That is wrong. That's another problem I have, kind of. Anyway, sticking to this.
The RPZ is WiFi to a WAP then Cat-5 to the other RPI.

The WAP is a real WAP. (Modem/router thingy.)

It is getting .... retired soon because of other reasons.
So, why am I asking about it if the WAP is soon to be retired?
Because as it is now, I have that WAP.

Alas there are no logs I can look at. It is a modem/router with a WAP in it.
There MAY be a "diagnostic" page which would show errors, but I've never seen a log option.

I may change frequencies/channels.

The new one will be at a slightly different location, so that will be interesting to see what happens.

I can't eliminate the WAP as the RPZ doesn't really have CAT-5 connectivity.
Yeah, USB dongle..... But as it is a RPZ, it is small and I am still working on where to ultimately put it. So, yeah, I maybe could. But in saying that, I may replace it with a real RPI rather than a Z(w).

Other devices connect to the WAP (now and then) and work.
But you may be onto something. I shall have to dig up my WiFi scanner app on the phone (or use the RPI which is a WAP) to scan and see what the frequency occupation is.

And this? ^^^^^

Sorry. Yeah, shall try that too.

I'm going through a huge re-design of a lot of my flows because of things I have learnt.

Although supposedly easy, it is repetitive and I am having to do a lot of dashboard stuff.
(rant end.)

One point here - the locations of log files often seems to catch people out. They generally are in a standard location under Linux - /var/log as mentioned higher in the thread.

However, if you are using pretty much any current version of Linux, certainly all of the ones that use systemd which includes Rasbian, you can more easily use a common command to access the majority of logs:

sudo journalctl -u mosquitto

Then you only have to remember the command, not the location of the log file. There are lots of options to that command as well such that you can show the last n lines, show live updates, etc.

Simply replace the name (mosquitto in this case) with another service name to see the logs. e.g. sudo journalctl -u node-red.

Even better, why not use the "scripts" facility of npm? Add some log entries to the package.json file in your userDir:

...
  "scripts": {
    "nrlog": "sudo journalctl -u node-red -f -n 0 -o cat",
    "moslog": "sudo journalctl -u mosquitto -f -n 0 -o cat",
    ...
  },
...

Then you only need to be in the userDir folder and run npm run nrlog.

1 Like

I think you missed my confusion.

I was told to look at the mosquitto log.

My attempts to find it were in vein as I was on a remote machine and not the broker.

Having said that, I looked for the log on that machine.

Only after .... ukmoose found and pasted an earlier post of mine and the machine name was mentioned, then leading me to complain about the different machine name/s.

As Nick was replying (to probably correct my error) I worked it out for myself that it is on the broker rather than the remote machine.

This was evident to me after I went to said broker and looked and saw the file existing, but not on the machine of interest - which was a server.

It all clicked into place and I looked at the log, posted the latter part of it.

But thanks.

I'm slowly climbing the ladder of knowledge.

This is right - isn't it?
That the log is on the broker machine and not the remote one?

1 Like

I don't agree with that as a general statement. For example I have a Pi running my heating system, MQTT is an inherent part of the system (for storing current state etc) and the system must keep running even if the network is down. Therefore the broker has to be on that Pi. However I also have another Pi running my greenhouse environment and the same is true of that Pi, therefore it must also have a local broker. The solution is to have local brokers anywhere they are needed and subscribe to those brokers remotely when required for dashboards etc.

Hi Colin.

I'd beg to differ.

On the other machines where you are running the second (and up) broker.

Unless there are many parts which operate separately, all the messages are sent with the retain flag.

Then the message is kept.

Although having multiple brokers is also possible, and I get that things fail. (Slight chuckle considering what I've been through.)

MQTT is built to be robust, and things like what you are mentioning would be well within the scope of MQTT and how it handles messages.

So, unless you have a very segmented system, having multiple brokers seems overkill.
No offence, of course.

But having multiple brokers would also make seeing all the devices difficult unless you have a heirarchial (?) structure where the brokers send messages between each other also.

That would go against a lot of what MQTT is supposed to ..... do.

Anyway, I'll shut up now, as I am probably digging a hole.

If you’ve got good rationale then great but for someone “trying to learn”, the KISS principle, was what I was suggesting.

:slight_smile:

Hey, I'm trying. :wink:

I think that the truth lies somewhere in-between. I run 2 brokers because I have had one Pi fail - not completely but drop off the network - having the second broker makes it possible to cross the two over such that both are aware of each other and can use LWT messages to track whether the other device is still alive. As Node-RED also runs on both devices, I have a bot on each device that informs me if one of the devices disappears from the network. I also have flows that reboot the device if it can't reach the local router.

Arranging high-availability certainly falls into a more advanced category and beyond the simple basics for sure. However, after a while you begin to rely even on a home-grown home-automation system, especially if you have a family, and so adding resilience to the system grows in importance.

Yes, a good starting point and always hard to get the right balance between immediate knowledge and future pointers.

I don't think that is hierarchical, more of a mesh. but yes, that is correct and absolutely the way to do it. Indeed, MQTT supports inter-broker communications partly for this reason.

It doesn't make it more difficult to see the devices though, it makes it a lot easier - at the cost of some sweated brain cells initially working out the correct connections.

No, quite the opposite. MQTT recognises that devices and networks are not 100% reliable and allows you to build a mesh so that you stand a much higher chance of having something still working and able to communicate.

1 Like