O'Reilly logo

Mastering Internet of Things by Peter Waher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting persisted credentials

We will use the persistent settings library we presented earlier to check if we've got persisted credentials from earlier sessions:

string Host = await RuntimeSettings.GetAsync( 
"XmppHost","waher.se"); 
int Port = (int)await RuntimeSettings.GetAsync("XmppPort", 5222); 
string UserName = await RuntimeSettings.GetAsync( 
"XmppUserName",string.Empty); 
string PasswordHash = await RuntimeSettings.GetAsync( 
"XmppPasswordHash", string.Empty); 
string PasswordHashMethod = await RuntimeSettings.GetAsync( 
"XmppPasswordHashMethod", string.Empty); 

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required