In previous blogs, I have shown the Main Menu of the Mobile App. In this blog I will explain the "Setup New Device" option in that menu. Below is the screenshot of this page on Android Emulator running Marshmallow image.
The various components are described here:
- Device Model #: The format of this value is two letters followed by two numbers. This will be used in forming the Device Id for cloud access purpose. These indicate as follows,
- The 1st letter indicates the Connectivity as follows.
- C - Cellular only - When only this connectivity is possible, the WiFi details pane (shown in grey in the above picture) will be disabled as those details need not be input.
- W - WiFi only - When this connectivity is possible, the WiFi panel will be enabled.
- B - Both Cellular and WiFi connectivity
- The 2nd letter indicates the Cloud Service available as follows,
- M - Microsoft Azure (Currently this is the only option coded)
- A - Amazon Web Services (This service is under examination)
- G - Google Web Services (This is not yet considered and meant for future expansion)
- The last two digits indicate the version of the hardware board, where the 1st digit is the Major version and the 2nd digit is the Minor version.
- The 1st letter indicates the Connectivity as follows.
- Device Serail #: This can take any number of digits. This also will be used in setting the Device Id for cloud access purposes.
- WiFi Details pane: This pane will be enabled only if the Model # doesn't start with C.
- WiFi SSID: This is the WiFi Network Name.
- WiFi Password: Though this is shown in clear text in the screenshot, it will actually be masked with a button to show it momentarily (which is the general practice now for mobile apps).
- Unit of Temperature: The button with red border indicates the current selection.
- Threshold Temperature: This value is the temperature, in the units selected above, when crossed an alert will be sent to the contact details that will entered next.
- Alert Mobile #: This is the mobile phone number to which SMS text message will be sent if cellular connectivity is enabled on the board. However push notifications will anyway be sent for all configurations. The mobile number will be verified by sending a notification to it. Until it is confirmed no alerts will be sent to it.
- Alert E-mail Address: When an alert situation occurs an email will be sent to this address if given. This email will be validated by sending a confirmation email. Until it is confirmed no alerts will be sent.
- "PROVISION NEW DEVICE" Button: This button will be enabled only after the Model # and Serial # are entered as these two values are needed to formulate the Device Id under which the device is provisioned in the cloud service. When this button is tapped, the designated cloud service will be contacted and the Device Id will be registered with it so that the device can send sensor data to be stored in the cloud. After registering the device with the cloud service, all the details will be sent to the device via Bluetooth so that the device initializes with the parameters and start sending data to the cloud.
The two fields above the button are for development purposes and will not appear in the Release version of the app.