IoT World Part 1: Installing the IDE and creating our first project under Ubuntu/Debian

Download the editor

The editor I will be using is Atom, an amazing editor by GitHub, you can download the .deb package from here

 

Installing the package

PlatformIO is an amazing IDE for IoT, packs tons of out-of-box IoT example projects, frameworks and support for various boards, growing every day.

Open Atom 

On the right there should be option called Install a package, after you click it, a blue button will appear called Open Installer, click it

In case it’s missing go to Edit -> Preferences,  menu Settings should open go to Install

Type in platformio-ide, on the first package click Install, takes about 5 minutes

After the installation is completed open terminal and type

apt-get install clang

So you can advantage of Intelligent Code Completion

Restart Atom and you can now use the amazing Platform IDE 


Creating our first project

Open Platform IO Home from the top-menu or through the home button on the right

 

Click on + New Project and on Selected board choose the board you are using mine is NodeMCU 0.9 (ESP-12 Module)

And press Process. it may take a few minutes

 

Adding the required libraries

Go to Platform IO Home, on the left select <> Libraries 

Type WiFi101

 

Type Losant

When the installation is finished you need to go to Platform IO top menu and select Rebuild C/C++ Project Index

 

Losant is an amazing IoT enterprise ready platform which is extremely easy to use and incredibly powerful.

Astonishing tutorials will follow, stay tuned.

If you have any questions or suggestions, feel free to leave a comment.
Become a Patron!