Device Discovery
Posted: Tue Jul 19, 2022 7:56 am
Using v3.3.8. On the device discovery webpage one of the columns is "Application" which displays the string in AppName. Using an example program the AppName string is displayed immediately. But with my application, it takes about 20-minutes to show up. The device is found immediately, it's just the AppName that is blank for about 20-minutes. And it doesn't matter how many times I hit the Refresh button. Once the AppName is displayed, if I reboot, it disappears for another 20-minutes. But if I open the ConfigPage, the AppName string is displayed under the Sys tab.
The only difference I can see between how the example programs set AppName and how my app sets AppName is that, in the examples AppName is set at its declaration whereas my app sets it during the device initialization phase because the string contains info that is dynamic. Is there something I can do to speed up how soon AppName gets displayed?
The only difference I can see between how the example programs set AppName and how my app sets AppName is that, in the examples AppName is set at its declaration whereas my app sets it during the device initialization phase because the string contains info that is dynamic. Is there something I can do to speed up how soon AppName gets displayed?
Code: Select all
char MyAppName[64];
const char *AppName = MyAppName;
...
void UserMain(void *pd)
{
initmain();
...
}
void initmain()
{
init(); // Initialize network stack. This must be first!
InitFlashFileSystem(); // Init Flash file system. Must be second! This takes 8-sec.
LoadParameters();
sprintf( MyAppName, "%s v%s ser#%s", FW_FAMILY, FW_VERSION, serial_no );
...
}