@@ -62,8 +62,16 @@ void setup() {
6262 menuVolume.setCurrentValue (20 , true );
6363 menuDirect.setBoolean (true , true );
6464 });
65+
6566 prepareWifiForUse ();
6667
68+ // option 1 globally set HB timeouts.
69+ remoteServer.setHeartbeatIntervalAll (30000 );
70+
71+ // option 2 selectively set HB timeouts.
72+ // auto tvRemote = remoteServer.getRemoteConnector(0);
73+ // if(tvRemote != nullptr) tvRemote->setHeartbeatTimeout(30000);
74+
6775 controller.initialise ();
6876
6977#if MENU_USING_CALIBRATION_MGR == true
@@ -101,19 +109,19 @@ void setup() {
101109 // use a 4BPP (16 color) icon bitmap by providing both the data and the palette.
102110 themeBuilder.menuItemOverride (menuSettings)
103111 .withImage4bpp (Coord (31 , 40 ), statusBitmap_palette0, statusBitmap0)
104- .onRow ( 3 ). multiCol ( 1 , 3 )
112+ .onRowCol ( 3 , 1 , 3 )
105113 .apply ();
106114
107115 // Again we take a menu item override for the status submenu item, and this time it will render a single color bitmap
108116 themeBuilder.menuItemOverride (menuStatus)
109117 .withImageXbmp (iconSize, statusIcon40Bits)
110- .onRow ( 3 ). multiCol ( 2 , 3 )
118+ .onRowCol ( 3 , 2 , 3 )
111119 .apply ();
112120
113121 // Again we take a menu item override for the mute boolean menu, and this time it will render a single color bitmap
114122 themeBuilder.menuItemOverride (menuMute)
115123 .withImageXbmp (iconSize, muteOffIcon40Bits, muteOnIcon40Bits)
116- .onRow ( 3 ). multiCol ( 3 , 3 )
124+ .onRowCol ( 3 , 3 , 3 )
117125 .apply ();
118126
119127 /* *
@@ -158,13 +166,13 @@ void prepareWifiForUse() {
158166 if (strlen (menuConnectivitySSID.getTextValue ())==0 ) {
159167 // no SSID come up as an access point
160168 WiFi.mode (WIFI_AP);
161- WiFi.softAP (" tcmenu" , " secret " );
169+ WiFi.softAP (" tcmenu" , " secret1234 " );
162170 serdebugF (" Started up in AP mode, connect with 'tcmenu' and 'secret'" );
163171 }
164172 else {
165- WiFi.begin (menuConnectivitySSID.getTextValue (), menuConnectivityPasscode.getTextValue ());
166173 WiFi.mode (WIFI_STA);
167- serdebugF (" Connecting to Wifi using settings from connectivity menu" );
174+ WiFi.begin (menuConnectivitySSID.getTextValue (), menuConnectivityPasscode.getTextValue ());
175+ serdebugF2 (" Connecting to Wifi using settings for " , menuConnectivitySSID.getTextValue ());
168176 }
169177
170178 // now monitor the wifi level every few seconds and report it in a widget.
0 commit comments