passage à plateformio
This commit is contained in:
parent
b577733898
commit
1cb4f8b6f5
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
arduino/mqttled/mqttled.h
|
||||
arduino/.travis.yml
|
||||
|
||||
4
arduino/.gitignore
vendored
Normal file
4
arduino/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
.pioenvs
|
||||
.piolibdeps
|
||||
.clang_complete
|
||||
.gcc-flags.json
|
||||
@ -1,3 +1,5 @@
|
||||
#include <Arduino.h>
|
||||
|
||||
#include "mqttled.h"
|
||||
|
||||
// C'est moche mais c'est pour récuperer EVERY_N_SECONDS :)
|
||||
@ -12,3 +12,9 @@
|
||||
#define mqtt_port 1883
|
||||
#define mqtt_user "XXX"
|
||||
#define mqtt_password "XXX"
|
||||
|
||||
void setup();
|
||||
void setupWifi();
|
||||
void testConnectMQTT();
|
||||
void callbackMQTT(char* topic, byte* payload, unsigned int length);
|
||||
void loop();
|
||||
|
||||
18
arduino/platformio.ini
Normal file
18
arduino/platformio.ini
Normal file
@ -0,0 +1,18 @@
|
||||
; PlatformIO Project Configuration File
|
||||
;
|
||||
; Build options: build flags, source filter
|
||||
; Upload options: custom upload port, speed and extra flags
|
||||
; Library options: dependencies, extra library storages
|
||||
; Advanced options: extra scripting
|
||||
;
|
||||
; Please visit documentation for the other options and examples
|
||||
; http://docs.platformio.org/page/projectconf.html
|
||||
|
||||
[env:nodemcuv2]
|
||||
platform=espressif8266
|
||||
board=nodemcuv2
|
||||
framework=arduino
|
||||
|
||||
[platformio]
|
||||
src_dir=mqttled
|
||||
lib_dir=/home/jcabillot/Arduino/libraries
|
||||
Loading…
x
Reference in New Issue
Block a user