After device set-up, the device name I entered during set-up is reflected in the config mode status page. IOTAppStory::readConfig(configStruct &config) returns a structure with deviceName set to the default "yourESP."
This code will print "yourESP", yet the Device Name on the config status page will show "Truck-Cab" (the name set during the initial device set-up).
My immediate goal is to use, in my code, the device name that I assigned on initial device setup
Can I access that information for use in my code?
Can the configuration mode be modified to allow editing of the assigned device name?
Should the writeConfig method be storing the device name assigned at initial set-up?
I'm happy to make any necessary modifications to the IAS code, but I've been going through it for the last several hours, and can't find where the device name entered during set-up is stored, or where I could access that information to store it using the writeConfig method, or where I can modify the configuration pages. Any help, pointers, or direction would be appreciated.
After device set-up, the device name I entered during set-up is reflected in the config mode status page. IOTAppStory::readConfig(configStruct &config) returns a structure with deviceName set to the default "yourESP."
Example snippet:
This code will print "yourESP", yet the Device Name on the config status page will show "Truck-Cab" (the name set during the initial device set-up).
My immediate goal is to use, in my code, the device name that I assigned on initial device setup
I'm happy to make any necessary modifications to the IAS code, but I've been going through it for the last several hours, and can't find where the device name entered during set-up is stored, or where I could access that information to store it using the writeConfig method, or where I can modify the configuration pages. Any help, pointers, or direction would be appreciated.