PanelDue IP address display issue (3.3/3.4-pre1)
-
When connected to a SBC using DuetPi, the objectModel for the WiFi network interface is populated as Indices[1], which is never displayed. Below is the current code, which if I'm reading it correctly, will only ever display the IP populated in Indices[0].
We'd like to see this modified to traverse the array and display the first IP address which is populated.
case rcvNetworkInterfacesActualIP: { // Only look at the first valid IP if (indices[0] > 0) { return; } UI::UpdateIP(data); } break;
-
@oozeBot the ip address at index[1] is then the SBC's?
-
-
@chrishamm thanks for your reply.
@oozeBot this means the feature you are requesting in not easily to implement and therefore not likely going to happen.
-
@oozebot something to try is to use a macro to echo the IP address in the console of the PanelDue. This works around the limitation because the macro should be evaluated by DSF.
try a macro with the following command in it
echo network.interfaces[1].actualIP
run it from the PanelDue. You can have it in the macro menu on the main screen.
-
@oozeBot not tested but this inside a macro should also work:
M291 P{network.interfaces[1].actualIP} R"IP Address on SBC" S1 T5
-
This is surprising now that the PanelDue has been updated to work with the ObjectModel, but you are right.. after some testing, my assumption of what is passed to the PanelDue was incorrect.
We recently made the decision to build our own version of the PanelDue firmware (that we will keep in parity with the latest official releases). One of the changes was to add in the Global object. So to "fix" the issue, we added a global variable that contains the SBC's IP and are populating the field on the PanelDue with it.. It's not elegant, but it works.
-
@oozebot ahh yes that is a neat way to do it.
-
@oozeBot said in PanelDue IP address display issue (3.3/3.4-pre1):
This is surprising now that the PanelDue has been updated to work with the ObjectModel, but you are right.. after some testing, my assumption of what is passed to the PanelDue was incorrect.
We recently made the decision to build our own version of the PanelDue firmware (that we will keep in parity with the latest official releases). One of the changes was to add in the Global object. So to "fix" the issue, we added a global variable that contains the SBC's IP and are populating the field on the PanelDue with it.. It's not elegant, but it works.
Where can I find your PanelDue firmware?