Xiao Mi Band is BLE Bluetooth Low Energy Device.We Test Android SDK for communicate and control with MI Band. We test with MI Band version 1 only. ( This version has not heart rate sensor yet )
ESP8266 WiFi SmartConfig with Android App and Arduino IDE.
What is ESP8266 WiFi SmartConfig?
When you use ESP8266 WiFi Module connect your network or Internet. You must fill SSID and password for your network to ESP8266 Code. SmartConfig help you to do that automatically.
System Diagram
smart config APIs
Herein we only introduce smart-config APIs,users can inquire Espressif Systems for smart-config documentation which will contain more details. Please make sure the target AP is enabled before enable smart-config.
1. smartconfig_start
Function: Start smart configuration mode, to connect ESP8266 station to AP, by sniffing for special packets from the air, containing SSID and password of desired AP. You need to broadcast the SSID and password (e.g. from mobile device or computer) with the SSID and password encoded.
Note:
This api can only be called in station mode.
During smart-config,ESP8266 station and soft-AP are disabled.
Can not call smartconfig_start twice before it finish,please call smartconfig_stop first.
Don’t call any other APIs during smart-config, please call smartconfig_stop first.
2. smartconfig_stop
Function: stop smart config, free the buffer taken by smartconfig_start.
Note:
Whether connect to AP succeed or not, this API should be called to free memory taken by smartconfig_start.
Prototype: bool smartconfig_stop(void)
Parameter: null
Return:
true: succeed
false: fail
ESP8266 WiFi SmartConfig Source Code ( Arduino IDE )
Android Arduino IoT Control Devices with ThingSpeak.com
Arduino Board ESP8266 WiFi Module and Android devices make Internet of Things Application to control devices with Thingspeak.com.
System Diagram
Hardware
Arduino Board or compatible board
ESP8266 WiFi Module ( ESP-01 ) with Flash New Firmware.
Android IoT ThingSpeak Sensor Data Monitor
A major component of or rather the very concept, Internet of Things, is about how to connect various devices to the network so that they can both send data and receive commands. Various technologies to address the last mile connectivity, such as Bluetooth, WiFi, NFC, etc... already exist, but most of these are complicated to deploy and often need additional hardware such as a local control server or appliance.
What is ThingSpeak?
ThingSpeak is an open source “Internet of Things” application and API to store and retrieve data from things using HTTP over the Internet or via a Local Area Network. With ThingSpeak, you can create sensor logging applications, location tracking applications, and a social network of things with status updates.
Your Things
Things is the objects or embedded system or electronics sensors or devices and connectivity to enable it to achieve greater value and service by exchanging data with the manufacturer, operator and/or other connected devices.
Each thing is uniquely identifiable through its embedded computing system.
but is able to interoperate within the existing Internet infrastructure.