50 lines
801 B
Plaintext
50 lines
801 B
Plaintext
|
====== Installer le programme RASPJSON ======
|
||
|
{{ :dummy.png?75x75|Nom de la section}}
|
||
|
Lorem ipsum dolor sit amet, ...
|
||
|
|
||
|
|
||
|
|
||
|
sudo apt install build-essential git-core
|
||
|
|
||
|
--
|
||
|
|
||
|
Récupérer le projet
|
||
|
|
||
|
git clone https://github.com/hallard/LibTeleinfo
|
||
|
|
||
|
--
|
||
|
|
||
|
Accéder au dossier
|
||
|
|
||
|
cd LibTeleinfo/examples/Raspberry_JSON/src
|
||
|
|
||
|
--
|
||
|
|
||
|
Modification des infos dans
|
||
|
|
||
|
nano raspjson.cpp
|
||
|
nano LibTeleinfo.h
|
||
|
|
||
|
pour inclure le chemin
|
||
|
|
||
|
#include "../../src/LibTeleinfo.h"
|
||
|
|
||
|
|
||
|
--
|
||
|
|
||
|
Compilation
|
||
|
|
||
|
sudo make
|
||
|
|
||
|
--
|
||
|
|
||
|
Exécution du programme
|
||
|
|
||
|
./raspjson -d /dev/serial0&
|
||
|
|
||
|
--
|
||
|
|
||
|
Exemple de trames reçues
|
||
|
|
||
|
{"_UPTIME":310146, "ADCO":2147483647, "ISOUSC":60, "PTEC":"HC..", "IINST":24, "IMAX":90, "PAPP":5260, "MOTDETAT":0, "ISOUHHPHC":"A", "HO":2147483647, "HCHC":15205491, "HCHP":4851788, "OPTARIF":"HC..", "HHPHC":"A"}
|