2.0 KiB
2.0 KiB
| tags | title | excerpt | layout | permalink | ||
|---|---|---|---|---|---|---|
|
PlatformIO in Che | tutorials | /:categories/platformio/ |
This example uses the EmonTX connected to a RaspberryPi3 with the PlatformIO remote agent and Eclipse Che's PlatformIO stack. 
- Connect the EmonTX to USB to RS232 TTL Converter Adapter Module and then connect that to the RaspberryPi3
- Install PlatformIO:
sudo pip install https://github.com/platformio/platformio/archive/develop.zip - Login to your PlatformIO account:
pio account login - Start the PlatformIO agent:
pio remote agent start& - Go to the Che dashboard and create workspace from
PlatformIOstack  - In Che choose Workspace > Import Project and import the EmonTX firmware code from GitHub: https://github.com/openenergymonitor/emonTxFirmware.git 
- In the project import wizard, set the project type to
C++. - Open
/emonTxFirmware/emonTxV3/RFM/emonTxV3.4/emonTxV3_4_DiscreteSampling - Right click on the folder and select Convert to Project
- Choose a
C++project.  - Open terminal and login
pio account loginyou need to do it once per workspace. - Run command
Remote device list. Make sure your device is listed.  You can use the built-in commands to upload and list devices.
Finally, you can track devices with a serial monitor by entering pio remote device monitor - -baud 115200
