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

Preparing the connection for first-time use

The first time the application is run, there will be no credentials available. There are various ways in which credentials can be obtained:

  • We can ask the user for credentials
  • We can preprogram or configure credentials
  • We can generate new credentials

The projects in GitHub will ask the user for account information using a simple dialog. Here the user will be prompted with a dialog the first time the application is run. The dialog will be displayed until valid credentials are provided. These will later be persisted using the static RuntimeSettings class, and will be available to the application the next time it is executed.

The problem of presenting a dialog to the user is that things normally ...

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