Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
project:nodemcu_windev [2016/11/20 20:13] licho |
project:nodemcu_windev [2016/11/20 21:13] licho |
||
---|---|---|---|
Line 17: | Line 17: | ||
* [[nodemcu_windev#Nahrání LUA skriptů na ESP8266|Nahrání LUA skriptů na ESP8266]] | * [[nodemcu_windev#Nahrání LUA skriptů na ESP8266|Nahrání LUA skriptů na ESP8266]] | ||
* [[nodemcu_windev#Nástroj ESPlorer|Nástroj ESPlorer]] | * [[nodemcu_windev#Nástroj ESPlorer|Nástroj ESPlorer]] | ||
- | * [[nodemcu_windev#Instalace Mosquitto MQTT Broker|Instalace Mosquitto MQTT Broker]] | ||
- | * [[nodemcu_windev#Testování MQTT s MQTTLens|Testování MQTT s MQTTLens]] | ||
* [[nodemcu_windev#Instalace MongoDB Serveru|Instalace MongoDB Serveru]] | * [[nodemcu_windev#Instalace MongoDB Serveru|Instalace MongoDB Serveru]] | ||
* [[nodemcu_windev#Instalace Node.js|Instalace Node.js]] | * [[nodemcu_windev#Instalace Node.js|Instalace Node.js]] | ||
- | * [[nodemcu_windev#Instalace Node.js balíčků|Instalace Node.js balíčků ]] | + | * [[nodemcu_windev#Instalace Pythonu|Instalace Pythonu]] |
* [[nodemcu_windev#Instalace Node-Red|Instalace Node-Red]] | * [[nodemcu_windev#Instalace Node-Red|Instalace Node-Red]] | ||
+ | * [[nodemcu_windev#Instalace Mosquitto MQTT Broker|Instalace Mosquitto MQTT Broker]] | ||
+ | * [[nodemcu_windev#Testování MQTT s MQTTLens|Testování MQTT s MQTTLens]] | ||
Line 94: | Line 94: | ||
45264 | 45264 | ||
> | > | ||
- | </code> | ||
- | |||
- | |||
- | ==== Instalace Mosquitto MQTT Broker ==== | ||
- | Pro roli MQTT Brokera jsme si vybrali implementaci Mosquitto. | ||
- | |||
- | * Prvně si stáhněte potřebné instalační soubory pro [[https://slproweb.com/download/Win32OpenSSL_Light-1_0_2j.exe|OpenSSL]], [[http://mirror.ibcp.fr/pub/eclipse//mosquitto/binary/win32/mosquitto-1.4.10-install-win32.exe|Mosquitto]] a knihovnu [[ftp://sources.redhat.com/pub/pthreads-win32/dll-latest/dll/x86/pthreadVC2.dll|pThreads]] | ||
- | * Nainstalujte OpenSSL balíček ''Win32OpenSSL_Light-1_0_2j.exe'' | ||
- | * Nainstalujte Mosquitto balíček ''mosquitto-1.4.10-install-win32.exe'' | ||
- | * Zkopírujte staženou knihovnu ''pthreadVC2.dll'' do instalační složky Mosquitto | ||
- | <code> | ||
- | PS C:\> dir "C:\Program Files (x86)\mosquitto\pthreadVC2.dll" | ||
- | |||
- | |||
- | Directory: C:\Program Files (x86)\mosquitto | ||
- | |||
- | |||
- | Mode LastWriteTime Length Name | ||
- | ---- ------------- ------ ---- | ||
- | -a---- 27.5.2012 1:00 55808 pthreadVC2.dll | ||
- | </code> | ||
- | * Zkopírujte OpenSSL knihovny ''libeay32.dll'' a ''ssleay32.dll'' do instalační složky Mosquitto | ||
- | <code> | ||
- | PS C:\> dir "C:\Program Files (x86)\OpenSSL-Win32-102j\*eay32.dll" | ||
- | |||
- | |||
- | Directory: C:\Program Files (x86)\OpenSSL-Win32-102j | ||
- | |||
- | |||
- | Mode LastWriteTime Length Name | ||
- | ---- ------------- ------ ---- | ||
- | -a---- 26.9.2016 10:00 1265664 libeay32.dll | ||
- | -a---- 26.9.2016 10:00 274432 ssleay32.dll | ||
- | |||
- | PS C:\> copy "C:\Program Files (x86)\OpenSSL-Win32-102j\*eay32.dll" "C:\Program Files (x86)\mosquitto\" | ||
- | PS C:\> dir "C:\Program Files (x86)\mosquitto\*eay32.dll" | ||
- | |||
- | |||
- | Directory: C:\Program Files (x86)\mosquitto | ||
- | |||
- | |||
- | Mode LastWriteTime Length Name | ||
- | ---- ------------- ------ ---- | ||
- | -a---- 26.9.2016 10:00 1265664 libeay32.dll | ||
- | -a---- 26.9.2016 10:00 274432 ssleay32.dll | ||
- | </code> | ||
- | * Pokud potřebujete upravte si nastavení Mosquitto konfigurace | ||
- | <code> | ||
- | PS C:\> notepad "C:\Program Files (x86)\mosquitto\mosquitto.conf" | ||
- | </code> | ||
- | * Spusťte Mosquitto službu | ||
- | <code> | ||
- | PS C:\> Set-Service Mosquitto -Status Running | ||
- | PS C:\> Get-Service Mosquitto | ||
- | |||
- | Status Name DisplayName | ||
- | ------ ---- ----------- | ||
- | Running mosquitto Mosquitto Broker | ||
</code> | </code> | ||
Line 337: | Line 279: | ||
{{wiki_nodemcu_windev_nodered.png}} | {{wiki_nodemcu_windev_nodered.png}} | ||
+ | |||
+ | ==== Instalace Mosquitto MQTT Broker ==== | ||
+ | Pro roli MQTT Brokera jsme si vybrali implementaci Mosquitto. | ||
+ | |||
+ | * Prvně si stáhněte potřebné instalační soubory pro [[https://slproweb.com/download/Win32OpenSSL_Light-1_0_2j.exe|OpenSSL]], [[http://mirror.ibcp.fr/pub/eclipse//mosquitto/binary/win32/mosquitto-1.4.10-install-win32.exe|Mosquitto]] a knihovnu [[ftp://sources.redhat.com/pub/pthreads-win32/dll-latest/dll/x86/pthreadVC2.dll|pThreads]] | ||
+ | * Nainstalujte OpenSSL balíček ''Win32OpenSSL_Light-1_0_2j.exe'' | ||
+ | * Nainstalujte Mosquitto balíček ''mosquitto-1.4.10-install-win32.exe'' | ||
+ | * Zkopírujte staženou knihovnu ''pthreadVC2.dll'' do instalační složky Mosquitto | ||
+ | <code> | ||
+ | PS C:\> dir "C:\Program Files (x86)\mosquitto\pthreadVC2.dll" | ||
+ | |||
+ | |||
+ | Directory: C:\Program Files (x86)\mosquitto | ||
+ | |||
+ | |||
+ | Mode LastWriteTime Length Name | ||
+ | ---- ------------- ------ ---- | ||
+ | -a---- 27.5.2012 1:00 55808 pthreadVC2.dll | ||
+ | </code> | ||
+ | * Zkopírujte OpenSSL knihovny ''libeay32.dll'' a ''ssleay32.dll'' do instalační složky Mosquitto | ||
+ | <code> | ||
+ | PS C:\> dir "C:\Program Files (x86)\OpenSSL-Win32-102j\*eay32.dll" | ||
+ | |||
+ | |||
+ | Directory: C:\Program Files (x86)\OpenSSL-Win32-102j | ||
+ | |||
+ | |||
+ | Mode LastWriteTime Length Name | ||
+ | ---- ------------- ------ ---- | ||
+ | -a---- 26.9.2016 10:00 1265664 libeay32.dll | ||
+ | -a---- 26.9.2016 10:00 274432 ssleay32.dll | ||
+ | |||
+ | PS C:\> copy "C:\Program Files (x86)\OpenSSL-Win32-102j\*eay32.dll" "C:\Program Files (x86)\mosquitto\" | ||
+ | PS C:\> dir "C:\Program Files (x86)\mosquitto\*eay32.dll" | ||
+ | |||
+ | |||
+ | Directory: C:\Program Files (x86)\mosquitto | ||
+ | |||
+ | |||
+ | Mode LastWriteTime Length Name | ||
+ | ---- ------------- ------ ---- | ||
+ | -a---- 26.9.2016 10:00 1265664 libeay32.dll | ||
+ | -a---- 26.9.2016 10:00 274432 ssleay32.dll | ||
+ | </code> | ||
+ | * Pokud potřebujete upravte si nastavení Mosquitto konfigurace | ||
+ | <code> | ||
+ | PS C:\> notepad "C:\Program Files (x86)\mosquitto\mosquitto.conf" | ||
+ | </code> | ||
+ | * Spusťte Mosquitto službu | ||
+ | <code> | ||
+ | PS C:\> Set-Service Mosquitto -Status Running | ||
+ | PS C:\> Get-Service Mosquitto | ||
+ | |||
+ | Status Name DisplayName | ||
+ | ------ ---- ----------- | ||
+ | Running mosquitto Mosquitto Broker | ||
+ | </code> | ||
+ | |||
==== Testování MQTT s MQTTLens ==== | ==== Testování MQTT s MQTTLens ==== |