IoT solutions are growing very very fast. The platforms and IoT Hardware devices such as embedded systems, which are revolution to the hardware and electronics. many of users ask me which one should we use? which hardware? which data transmission protocol? and also which IoT platform? the next questions are about why? where? and how safe is their solutions. in this post I wanna introduce an easy, fast and reliable IoT platform, which you can name it uBeac it pronounces as ubic.
IoT solution with ESP32 JsonThe ESP32 in one of the fast growing IoT devices. which is used an 40nm chip, supporting Wifi and Bluetooth in very very low energy used. so I decided to use this lovely small, reliable hardware. not in this case rather in all other projects, this is one of my choice. you can program with Arduino IDE very fast and easy. but the point in my head is about Json.
.
.
What is JSON?
JSON or Java Script Object Notation is a way structuring text to be exchanged as data. So rather just sending a temperature value to a device you could send an id and a time stamp all in the same message as object, this is useful for home automation systems when there are many temperature sensors.
For Example in this project I use the message :
{'id':'MyESP','sensors':[{'id': 'Temperature','data': $temperature$},
{'id':'Humidity','value': $humidity$},{'id': 'Counter','value': $counter$}]}
Object 'id', is the unique id of this sensor in uBeac platform. which is here shown as MyESP, further I will explain this
Object 'sensors' shows that it is a sensor Gateway in my project. this parameter is very very important for all IoT systems.
Object 'Temperature', 'Humidity' and 'Counter' is the temp, humidity and count values in the prescribed order.
This is as simple as you can see. only a simple Json string can handle all of your IoT solution.
.
.
IoT platform uBeac setupFirst you should sign up in uBeac.io after you will see dashboard like the picture below. then click on Devices, we are going to add a Gateway. look at the picture below go to Gateways and then click on + at the right corner above.
After that you will find settings like below, there are 14 different kind of gateways in v0.0.167b uBeac platform till now. the site says these gateways are going to be develop more apps like this.
In this project I used "uBeac generic gateway multiple sensor" which is shown above. after that we have to pick a name for this project. This name is very important because by growing the project, with gateway names, we can manage the hole project. I pick hackster as my gateway name, and finish.
Take a deep look above, there's a unique link, which is very very important, and somehow your security for IoT solution is this. we'll use this link further. The next step after we make our Gateway, is setup a Device. go to devices menu and click + at the right corner above.
Now we need some details. take a look at line 8 in Code section. the id is "MyESP" so this should set in "UID" section. this can be everything in characters and numbers, it depends on how you set in your codes. there are two other sections such as "Name" & "Description"
after submit, we need to add project sensors. again we need UID, Name and description. but in this section there is something else, "Sensor Type" you should add from list, such as humidity, temperature, voltage, illuminance, location, distance and etc. it depends on your project and sensors define to codes and so on.
View Data in IoT Dashboardone of the most important benefits in IoT solution platforms is data visualization. you can find this perfect option in other IoT platforms. but uBeac is something else. after we setup our gateway and devices with all sensors we have, its Dashboard turn. uBeac bring a perfect user friendly, drag and drop dashboard. first we should setup our Dashboard. so go to dashboard menu, then click + at the right corner above.
pick a name for your dashboard, then click on submit. now we have to add widgets to dashboard. so click on Detail like picture bellow.
now you will face the Widget lists. here we go just drag and drop any kind of widgets you want. like I did in this picture.
If you have any question just ask me in the comments below. answer to your question is like a meal to me, so go on and ask any kind of questions you have.
Comments
Please log in or sign up to comment.