DESIGN
SOFTWARE
Mobile App
The main goal of this app is to demonstrate the current blood sugar level and the historical data. It also helps track the records of drug releasing. The connection between the device and the app is based on Bluetooth 4.0. Then the data are demonstrated in a chart form, which enables users to easily understand their health conditions. The chart could alter among three different scales - hours, days, and months. Users can input an exact time to search for the blood sugar level at that time. Once users register their own accounts, they can set personal information - such as avatars, age, and type of diabetes - and access historical information on their mobile phones.
Code Illustration
Bluetooth: In Bluetooth section, we set our app as the central and the device as the peripherals. First, we import the database CoreBluetooth and define several variables to store the data. Then, we determine the Bluetooth status of the phone and find the equipment that meets the requirements. Finally, the connection event is triggered by clicking the corresponding cell.