Open TonnieKlappe opened 5 years ago
where can I fill in the SSID password and token in the ino file?
You can modify Line 16-18 in credentials.ino in the void readCredentials() function manually hardcode your credentials and return from that function.
Let me know if you have issues and I will try and help you out.
try this modified readCredentials() function...
void readCredentials()
{
int ssidAddr = 0;
int passAddr = ssidAddr + SSID_LEN;
int connectionStringAddr = passAddr + SSID_LEN;
ssid = (char *)malloc(SSID_LEN);
pass = (char *)malloc(PASS_LEN);
connectionString = (char *)malloc(CONNECTION_STRING_LEN);
ssid = "yournetworkname";
pass = "yournetworkpass";
connectionString = "device connection string from iothub";
return;
}
This can still be cleaned up or modified to check for fixed creds or read from eeprom or serial
I want to fill the SSID in the ino file because my reset is not working to change the SSID