File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ void setup() {
5858 menuMgr.setEepromRef (&eeprom);
5959
6060 // now we set up the authenticator we prepared earlier, it holds the paired devices that are allowed to connect and
61- // also the passcode for secured menu items.
61+ // also the passcode for secured menu items. We provide it to the remote server and also menu manager.
6262 eepromAuth.initialise (&eeprom, 100 );
6363 menuMgr.setAuthenticator (&eepromAuth);
6464 remoteServer.setAuthenticator (&eepromAuth);
@@ -83,7 +83,7 @@ void setup() {
8383
8484 // and register to receive updates from the connector when connectivity changes. When connected is true
8585 // we have a user connected to our remote endpoint.
86- remoteServer. getRemoteConnector ( 0 )-> setCommsNotificationCallback ([](CommunicationInfo info) {
86+ menuRemoteStatusList. registerCommsNotification ([](CommunicationInfo info) {
8787 deviceConnectedWidget.setCurrentState (info.connected ? 1 : 0 );
8888 });
8989
You can’t perform that action at this time.
0 commit comments