From ad3bd0a0464fc4aaadc1f48e547feff101d1d2d8 Mon Sep 17 00:00:00 2001 From: Christian Zufferey Date: Fri, 31 Jan 2020 10:59:18 +0100 Subject: [PATCH] =?UTF-8?q?Corrig=C3=A9=20les=20secrets=20du=20projet,=20i?= =?UTF-8?q?l=20manquait=20zBTN3=20:-(?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Mesures/humidity/bolo-thingspeak/_secrets_project.lua_ | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Mesures/humidity/bolo-thingspeak/_secrets_project.lua_ b/Mesures/humidity/bolo-thingspeak/_secrets_project.lua_ index debb4a4..735f928 100644 --- a/Mesures/humidity/bolo-thingspeak/_secrets_project.lua_ +++ b/Mesures/humidity/bolo-thingspeak/_secrets_project.lua_ @@ -4,12 +4,16 @@ -- il faut le renommer en 'secrets_project.lua' et sera exécuté -- par 'wifi_init.lua' au moment du boot +-- pour récupérer l'ID de son NodeMCU il faut faire: +-- print(node.chipid()) + + function secrets_project() - print("\n secrets_project.lua zf20018.1503 \n") + print("\n secrets_project.lua zf200131.1058 \n") zLED=4 -- NodeMCU --zLED=7 -- SonOff - zRELAY=6 -- SonOff + zBTN=3 node_id = "generic" if node.chipid() == 6734851 then node_id = "sonoff_1" zLED=7 end