I have come up with an android app( using Flutter ) that can be used to write and read digital, analog and serial data to and from bolt WiFi module using boltiot Flutter package.
PrerequisitesBasic understanding of flutter app development
How to build an appI will not be explaining how exactly I created this app. I will be explaining how to use boltiot flutter package in your flutter project so that you can create your own personalized Android or IOS application to work with Bolt WiFi module.
Will attach APK file for the app that I've built using this package for direct installation.
Lets begin
Step 1 : Add boltiot under dependencies in pubspec.yaml file and run pub get
dependencies:
boltiot: ^0.0.4Step 2 : Import boltiot.dart into your current dart file
import 'package:boltiot/boltiot.dart';Step 3 : Declare a Bolt object and initialize Api Key and Device Id using its constructor.
Bolt mybolt = new Bolt('API_ID','DEVICE_ID');That's it..........
You can now use this new mybolt object to communicate with the Bolt WiFi module. You can use this package just like how you use the boltiot python package. Below is an example for reading Digital Data from pin 3.
var response = mybolt.digitalRead('3');All functions in Bolt class return Future of http.Response object.
I have also added the sms(through Twilio) and email(through Mailgun) alert functionality.
How to use sms and Email alert functionalitySMS alert
step 1 : create Sms object and initialize accountSid, authToken, toNumber and fromNumber using its constructor.
Sms sms = new Sms('accountSid' , 'authToken' , toNumber' , 'fromNumber');
//Sending alert message using sms object
sms.sendSms(message: 'This is the message that will be sent to toNumber');Email alert
step 1 : create Email object and initialize apiKey, mailgunDomainName, fromEmail and toEmail.
Email email = new Email( 'apiKey', 'mailgunDomainName', 'fromEmail', 'toEmail');
//sending Email using email object
email.sendEmail(subject: 'This is subject of the email', body: 'This is the body of the email');I have attached the repository for boltiot flutter package.
And will attach repository for my demo project soon. You can install the APK to experience the app using below link.
Click here to download the apk file from google drive. This app is safe to use since I don't know how to steal data yet.
ScreenShots
- Login Page
- Digital Page
- Analog Page
- Serial Page














Comments