Page 1 sur 1

module h801 wifi

Publié : 08 janv. 2017, 21:53
par jeremc31
bonjour je cherche un firmware pour les module h801 wifi qui serait compatible avec home kit ios , car je n est pas trouvé grand chose :D
cordialement

Re: module h801 wifi

Publié : 08 janv. 2017, 22:14
par deennoo
Espeasy et le plugin milight le transforme en controleur milight avec en plus le pilotage de 2 canneaux de blanc.

Re: module h801 wifi

Publié : 09 janv. 2017, 09:44
par jeremc31
merci pour cette reponse rapide , a tu le lien du plugin
faut t il le flasher a l aide de l ide arduino ou c est un fichier bin ?

Re: module h801 wifi

Publié : 09 janv. 2017, 13:47
par deennoo
Plugin dispo sur le github playground espeasy
A flasher avec l'ide arduino

Re: module h801 wifi

Publié : 09 janv. 2017, 16:07
par jeremc31
j ai deja essayer de le flasher mes j ai des erreur dans l ide arduino , j en est corrige plusieur mes la je bloque il me parle de 'WiFiUDP' does not name a type

Code : Tout sélectionner

Arduino : 1.6.12 (Mac OS X), Carte : "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/moi-jerem-59/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/moi-jerem-59/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/moi-jerem-59/Documents/Arduino/libraries -fqbn=esp8266:esp8266:generic:CpuFrequency=80,FlashFreq=40,FlashMode=dio,UploadSpeed=115200,FlashSize=512K64,ResetMethod=ck,Debug=Disabled,DebugLevel=None____ -ide-version=10612 -build-path /var/folders/8r/ph3d01yn3gvck95p297nq55w0000gn/T/arduino_build_642070 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/tools/mkspiffs/0.1.2 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2 -prefs=runtime.tools.esptool.path=/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/tools/esptool/0.4.8 -verbose /Users/moi-jerem-59/Documents/projetrecifal/Dropbox/ESPEasyPluginPlayground-master/_P105_RGBW/_P105_RGBW.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/moi-jerem-59/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/moi-jerem-59/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/moi-jerem-59/Documents/Arduino/libraries -fqbn=esp8266:esp8266:generic:CpuFrequency=80,FlashFreq=40,FlashMode=dio,UploadSpeed=115200,FlashSize=512K64,ResetMethod=ck,Debug=Disabled,DebugLevel=None____ -ide-version=10612 -build-path /var/folders/8r/ph3d01yn3gvck95p297nq55w0000gn/T/arduino_build_642070 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/tools/mkspiffs/0.1.2 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2 -prefs=runtime.tools.esptool.path=/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/tools/esptool/0.4.8 -verbose /Users/moi-jerem-59/Documents/projetrecifal/Dropbox/ESPEasyPluginPlayground-master/_P105_RGBW/_P105_RGBW.ino
Using board 'generic' from platform in folder: /Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0
Using core 'esp8266' from platform in folder: /Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0
Detecting libraries used...
"/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/tools/sdk/include" "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/tools/sdk/lwip/include" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L    -DARDUINO=10612 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266  -DESP8266 "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266" "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/variants/generic" "/var/folders/8r/ph3d01yn3gvck95p297nq55w0000gn/T/arduino_build_642070/sketch/_P105_RGBW.ino.cpp" -o "/dev/null"
"/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/tools/sdk/include" "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/tools/sdk/lwip/include" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L    -DARDUINO=10612 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266  -DESP8266 "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266" "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/variants/generic" "-I/Users/moi-jerem-59/Documents/Arduino/libraries/Ticker" "/var/folders/8r/ph3d01yn3gvck95p297nq55w0000gn/T/arduino_build_642070/sketch/_P105_RGBW.ino.cpp" -o "/dev/null"
"/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/tools/sdk/include" "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/tools/sdk/lwip/include" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L    -DARDUINO=10612 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266  -DESP8266 "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266" "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/variants/generic" "-I/Users/moi-jerem-59/Documents/Arduino/libraries/Ticker" "/Users/moi-jerem-59/Documents/Arduino/libraries/Ticker/Ticker.cpp" -o "/dev/null"
Generating function prototypes...
"/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/tools/sdk/include" "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/tools/sdk/lwip/include" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L    -DARDUINO=10612 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266  -DESP8266 "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266" "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/variants/generic" "-I/Users/moi-jerem-59/Documents/Arduino/libraries/Ticker" "/var/folders/8r/ph3d01yn3gvck95p297nq55w0000gn/T/arduino_build_642070/sketch/_P105_RGBW.ino.cpp" -o "/var/folders/8r/ph3d01yn3gvck95p297nq55w0000gn/T/arduino_build_642070/preproc/ctags_target_for_gcc_minus_e.cpp"
"/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/var/folders/8r/ph3d01yn3gvck95p297nq55w0000gn/T/arduino_build_642070/preproc/ctags_target_for_gcc_minus_e.cpp"
Compilation du croquis...
"/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/tools/sdk/include" "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/tools/sdk/lwip/include" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L    -DARDUINO=10612 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266  -DESP8266 "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266" "-I/Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/variants/generic" "-I/Users/moi-jerem-59/Documents/Arduino/libraries/Ticker" "/var/folders/8r/ph3d01yn3gvck95p297nq55w0000gn/T/arduino_build_642070/sketch/_P105_RGBW.ino.cpp" -o "/var/folders/8r/ph3d01yn3gvck95p297nq55w0000gn/T/arduino_build_642070/sketch/_P105_RGBW.ino.cpp.o"
_P105_RGBW:12: error: 'WiFiUDP' does not name a type
 WiFiUDP Plugin_105_milightUDP;

 ^
/Users/moi-jerem-59/Documents/projetrecifal/Dropbox/ESPEasyPluginPlayground-master/_P105_RGBW/_P105_RGBW.ino: In function 'boolean Plugin_105(byte, EventStruct*, String&)':
_P105_RGBW:55: error: 'PLUGIN_DEVICE_ADD' was not declared in this scope
  case PLUGIN_DEVICE_ADD:

       ^
_P105_RGBW:57: error: 'Device' was not declared in this scope
   Device[++deviceCount].Number = PLUGIN_ID_105;

   ^
_P105_RGBW:57: error: 'deviceCount' was not declared in this scope
   Device[++deviceCount].Number = PLUGIN_ID_105;

            ^
_P105_RGBW:58: error: 'DEVICE_TYPE_SINGLE' was not declared in this scope
   Device[deviceCount].Type = DEVICE_TYPE_SINGLE;

                              ^
_P105_RGBW:60: error: 'SENSOR_TYPE_DIMMER' was not declared in this scope
   Device[deviceCount].VType = SENSOR_TYPE_DIMMER;

                               ^
_P105_RGBW:65: error: 'PLUGIN_GET_DEVICENAME' was not declared in this scope
  case PLUGIN_GET_DEVICENAME:

       ^
_P105_RGBW:71: error: 'PLUGIN_GET_DEVICEVALUENAMES' was not declared in this scope
  case PLUGIN_GET_DEVICEVALUENAMES:

       ^
_P105_RGBW:76: error: 'PLUGIN_WEBFORM_LOAD' was not declared in this scope
  case PLUGIN_WEBFORM_LOAD:

       ^
_P105_RGBW:79: error: 'ExtraTaskSettings' was not declared in this scope
   sprintf_P(tmpString, PSTR("<TR><TD>Milight UDP Port:<TD><input type='text' name='plugin_105_port' value='%u'>"), ExtraTaskSettings.TaskDevicePluginConfigLong[0]);

                                                                                                                    ^
_P105_RGBW:93: error: 'PLUGIN_WEBFORM_SAVE' was not declared in this scope
  case PLUGIN_WEBFORM_SAVE:

       ^
_P105_RGBW:95: error: 'WebServer' was not declared in this scope
   String plugin1 = WebServer.arg("plugin_105_port");

                    ^
_P105_RGBW:96: error: 'ExtraTaskSettings' was not declared in this scope
   ExtraTaskSettings.TaskDevicePluginConfigLong[0] = plugin1.toInt();

   ^
_P105_RGBW:105: error: invalid use of incomplete type 'struct EventStruct'
   SaveTaskSettings(event->TaskIndex);

                         ^
_P105_RGBW:49: error: forward declaration of 'struct EventStruct'
 boolean Plugin_105(byte function, struct EventStruct *event, String& string)

                                          ^
_P105_RGBW:105: error: 'SaveTaskSettings' was not declared in this scope
   SaveTaskSettings(event->TaskIndex);

                                    ^
_P105_RGBW:110: error: 'PLUGIN_INIT' was not declared in this scope
  case PLUGIN_INIT:

       ^
_P105_RGBW:112: error: invalid use of incomplete type 'struct EventStruct'
   LoadTaskSettings(event->TaskIndex);

                         ^
_P105_RGBW:49: error: forward declaration of 'struct EventStruct'
 boolean Plugin_105(byte function, struct EventStruct *event, String& string)

                                          ^
_P105_RGBW:112: error: 'LoadTaskSettings' was not declared in this scope
   LoadTaskSettings(event->TaskIndex);

                                    ^
_P105_RGBW:115: error: 'ExtraTaskSettings' was not declared in this scope
   Plugin_105_MiLight.UDPPort = ExtraTaskSettings.TaskDevicePluginConfigLong[0];

                                ^
_P105_RGBW:118: error: 'Plugin_105_milightUDP' was not declared in this scope
    if (Plugin_105_milightUDP.begin(Plugin_105_MiLight.UDPPort)) addLog(LOG_LEVEL_INFO, "INIT: Milight UDP");

        ^
_P105_RGBW:118: error: 'LOG_LEVEL_INFO' was not declared in this scope
    if (Plugin_105_milightUDP.begin(Plugin_105_MiLight.UDPPort)) addLog(LOG_LEVEL_INFO, "INIT: Milight UDP");

                                                                        ^
_P105_RGBW:118: error: 'addLog' was not declared in this scope
    if (Plugin_105_milightUDP.begin(Plugin_105_MiLight.UDPPort)) addLog(LOG_LEVEL_INFO, "INIT: Milight UDP");

                                                                                                           ^
_P105_RGBW:136: error: 'LOG_LEVEL_INFO' was not declared in this scope
    addLog(LOG_LEVEL_INFO, "INIT: Milight Fading Timer");

           ^
_P105_RGBW:136: error: 'addLog' was not declared in this scope
    addLog(LOG_LEVEL_INFO, "INIT: Milight Fading Timer");

                                                       ^
_P105_RGBW:145: error: 'PLUGIN_TEN_PER_SECOND' was not declared in this scope
  case PLUGIN_TEN_PER_SECOND:

       ^
_P105_RGBW:153: error: 'Plugin_105_milightUDP' was not declared in this scope
     int packetSize = Plugin_105_milightUDP.parsePacket();

                      ^
_P105_RGBW:193: error: 'LOG_LEVEL_INFO' was not declared in this scope
       addLog(LOG_LEVEL_INFO, "Restoring to colour...");

              ^
_P105_RGBW:193: error: 'addLog' was not declared in this scope
       addLog(LOG_LEVEL_INFO, "Restoring to colour...");

                                                      ^
_P105_RGBW:198: error: 'LOG_LEVEL_INFO' was not declared in this scope
      addLog(LOG_LEVEL_INFO, "Flashing RGB complete");

             ^
_P105_RGBW:198: error: 'addLog' was not declared in this scope
      addLog(LOG_LEVEL_INFO, "Flashing RGB complete");

                                                    ^
_P105_RGBW:211: error: 'PLUGIN_WRITE' was not declared in this scope
  case PLUGIN_WRITE:

       ^
_P105_RGBW:232: error: 'GetArgv' was not declared in this scope
   if (GetArgv(command, TmpStr1, 2)) Par[1] = str2int(TmpStr1);

                                  ^
_P105_RGBW:232: error: 'str2int' was not declared in this scope
   if (GetArgv(command, TmpStr1, 2)) Par[1] = str2int(TmpStr1);

                                                             ^
_P105_RGBW:233: error: 'GetArgv' was not declared in this scope
   if (GetArgv(command, TmpStr1, 3)) Par[2] = str2int(TmpStr1);

                                  ^
_P105_RGBW:233: error: 'str2int' was not declared in this scope
   if (GetArgv(command, TmpStr1, 3)) Par[2] = str2int(TmpStr1);

                                                             ^
_P105_RGBW:234: error: 'GetArgv' was not declared in this scope
   if (GetArgv(command, TmpStr1, 4)) Par[3] = str2int(TmpStr1);

                                  ^
_P105_RGBW:234: error: 'str2int' was not declared in this scope
   if (GetArgv(command, TmpStr1, 4)) Par[3] = str2int(TmpStr1);

                                                             ^
_P105_RGBW:235: error: 'GetArgv' was not declared in this scope
   if (GetArgv(command, TmpStr1, 5)) Par[4] = str2int(TmpStr1);

                                  ^
_P105_RGBW:235: error: 'str2int' was not declared in this scope
   if (GetArgv(command, TmpStr1, 5)) Par[4] = str2int(TmpStr1);

                                                             ^
_P105_RGBW:236: error: 'GetArgv' was not declared in this scope
   if (GetArgv(command, TmpStr1, 6)) Par[5] = str2int(TmpStr1);

                                  ^
_P105_RGBW:236: error: 'str2int' was not declared in this scope
   if (GetArgv(command, TmpStr1, 6)) Par[5] = str2int(TmpStr1);

                                                             ^
_P105_RGBW:237: error: 'GetArgv' was not declared in this scope
   if (GetArgv(command, TmpStr1, 7)) Par[6] = str2int(TmpStr1);

                                  ^
_P105_RGBW:237: error: 'str2int' was not declared in this scope
   if (GetArgv(command, TmpStr1, 7)) Par[6] = str2int(TmpStr1);

                                                             ^
_P105_RGBW:238: error: 'GetArgv' was not declared in this scope
   if (GetArgv(command, TmpStr1, 8)) Par[7] = str2int(TmpStr1);

                                  ^
_P105_RGBW:238: error: 'str2int' was not declared in this scope
   if (GetArgv(command, TmpStr1, 8)) Par[7] = str2int(TmpStr1);

                                                             ^
_P105_RGBW:261: error: 'printToWeb' was not declared in this scope
    if (printToWeb)

        ^
_P105_RGBW:263: error: 'printWebString' was not declared in this scope
     printWebString += F("RGB flashing for ");

     ^
_P105_RGBW:268: error: 'LOG_LEVEL_INFO' was not declared in this scope
    addLog(LOG_LEVEL_INFO, "Start PWM Flash");

           ^
_P105_RGBW:268: error: 'addLog' was not declared in this scope
    addLog(LOG_LEVEL_INFO, "Start PWM Flash");

                                            ^
_P105_RGBW:286: error: 'printToWeb' was not declared in this scope
      if (printToWeb)

          ^
_P105_RGBW:288: error: 'printWebString' was not declared in this scope
       printWebString += F("PWM fading over ");

       ^
_P105_RGBW:293: error: 'LOG_LEVEL_INFO' was not declared in this scope
      addLog(LOG_LEVEL_INFO, "Start PWM Fade");

             ^
_P105_RGBW:293: error: 'addLog' was not declared in this scope
      addLog(LOG_LEVEL_INFO, "Start PWM Fade");

                                             ^
/Users/moi-jerem-59/Documents/projetrecifal/Dropbox/ESPEasyPluginPlayground-master/_P105_RGBW/_P105_RGBW.ino: In function 'void Plugin_105_FadingTimer()':
_P105_RGBW:329: error: 'LOG_LEVEL_INFO' was not declared in this scope
       addLog(LOG_LEVEL_INFO, "Fade up complete");

              ^
_P105_RGBW:329: error: 'addLog' was not declared in this scope
       addLog(LOG_LEVEL_INFO, "Fade up complete");

                                                ^
_P105_RGBW:335: error: 'LOG_LEVEL_INFO' was not declared in this scope
       addLog(LOG_LEVEL_INFO, "Fade down complete");

              ^
_P105_RGBW:335: error: 'addLog' was not declared in this scope
       addLog(LOG_LEVEL_INFO, "Fade down complete");

                                                  ^
Plusieurs bibliothèque trouvées pour "Ticker.h"
Utilisé : /Users/moi-jerem-59/Documents/Arduino/libraries/Ticker
Non utilisé : /Users/moi-jerem-59/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/libraries/Ticker
Utilisation de la bibliothèque Ticker version 1.0 dans le dossier: /Users/moi-jerem-59/Documents/Arduino/libraries/Ticker 
exit status 1
'WiFiUDP' does not name a type

Re: module h801 wifi

Publié : 09 janv. 2017, 20:11
par deennoo
Tu as bien mis la librairie ? Ton ide arduino est bien configurer pour les esp ?

Re: module h801 wifi

Publié : 10 janv. 2017, 13:52
par jeremc31
oui je pense que tout les librairie sont dedans j ai choisie la configuration esp 8266 generic

Re: module h801 wifi

Publié : 12 janv. 2017, 17:18
par jeremc31
tu utilise quel version ide arduino ? je suis sous la derniere version

Re: module h801 wifi

Publié : 12 janv. 2017, 19:16
par deennoo
Idem

Re: module h801 wifi

Publié : 13 janv. 2017, 14:16
par jeremc31
peut tu me faire parvenir tes library ?