Cov txheej txheem:
Video: MQTT tus pab hauv tsev yog dab tsi?
2024 Tus sau: Lynn Donovan | [email protected]. Kawg hloov kho: 2023-12-15 23:47
MQTT (aka MQ Telemetry Transport) yog lub tshuab-rau-machine lossis "Internet of Things" kev sib txuas lus nyob rau sab saum toj ntawm TCP / IP. Nws tso cai rau lub teeb hnyav heev tshaj tawm / sau npe xa xov xa mus. Ua ke MQTT rau hauv Tus Pabcuam Hauv Tsev , ntxiv cov ntu hauv qab no rau koj qhov kev teeb tsa.
Ntxiv mus, kuv yuav ua li cas ntxiv ib lub cuab yeej rau tus pab hauv tsev?
Ntxiv cov khoom siv tsis ruaj ntseg
- Mus rau Z-Wave tswj vaj huam sib luag nyob rau hauv Home Assistant frontend.
- Nyem qhov Ntxiv Node khawm hauv Z-Wave Network Management card - qhov no yuav tso tus maub los rau hauv hom kev suav nrog.
- Qhib koj lub cuab yeej kom suav nrog los ntawm kev ua raws li cov lus qhia muab nrog lub cuab yeej.
Tsis tas li ntawd, kuv yuav teeb tsa MQTT broker li cas? Teeb tsa MQTT Broker ntawm Lub Zos Hauv Zos Siv Mosquitto
- Qhib lub qhov rais tshiab Linux davhlau ya nyob twg.
- Nruab yoov tshaj cum yog tias koj tsis tau teeb tsa.
- Tsim ib lub ncauj lus thiab sau npe rau nws nrog mosquitto_sub hais kom ua.
- Txheeb xyuas tias Kev Txhim Kho Computer txuas nrog tib lub network li Gateway.
Vim li cas peb thiaj xav tau MQTT?
MQTT Nws yog qhov tseem ceeb heev kom tsis txhob muab cov kev pabcuam hauv lub vev xaib thiab cov sockets thoob plaws koj lub servers. Node-RED siv MQTT thiab Domoticz tuaj yeem teeb tsa kom nkag mus thiab teeb tsa cov teeb liab. MQ Telemetry Transport Protocol hu ua MQTT yog tsim los rau cov khoom siv uas khiav ntawm lub zog qis thiab qis bandwidth.
MQTT broker yog dab tsi?
Ib MQTT broker yog a server uas tau txais tag nrho cov lus los ntawm cov neeg siv khoom thiab tom qab ntawd xa cov lus mus rau cov neeg siv khoom tsim nyog. Ib MQTT tus neeg siv khoom yog txhua yam khoom siv (los ntawm micro maub los txog rau qhov puv-fledged server ) uas khiav ib MQTT tsev qiv ntawv thiab txuas mus rau ib qho MQTT broker ntawm ib lub network.
Pom zoo:
Lub tsev Roman tseem ceeb thiab zoo li cas suav nrog tag nrho cov hauv qab no nta lub thoob khib nyiab hauv pliaj vaults thiab lub hauv paus dome hla ib chav tsev yim sab?
Lub Basilica ntawm Constantine suav nrog cov thawv ntim khoom, lub puab tsaig vaults, thiab lub hauv paus dome hla ib chav yim sab. Roman dub thiab dawb mosaics feem ntau tshwm sim ntawm phab ntsa ntawm tsev
Tus tswv tsev hauv JavaScript yog dab tsi?
Lus Txhais thiab Kev Siv Tus tswv tsev cov cuab yeej teev lossis xa rov qab hostname thiab chaw nres nkoj ntawm URL. Nco tseg: Yog tias tus lej chaw nres nkoj tsis tau teev nyob rau hauv URL (los yog nws yog lub tswv yim qhov chaw nres nkoj - zoo li 80, lossis 443), qee qhov browsers yuav tsis tso saib tus lej chaw nres nkoj
Dab tsi ntawm algorithms xav kom tus neeg xa khoom thiab tus neeg txais kev sib pauv hloov tus yuam sij zais cia uas siv los xyuas kom meej qhov tsis pub lwm tus paub ntawm cov lus?
Dab tsi ntawm algorithms xav kom tus neeg xa khoom thiab tus neeg txais kev sib pauv pauv tus yuam sij zais cia uas siv los xyuas kom tsis pub leej twg paub cov lus? Kev piav qhia: Symmetrical algorithms siv tib tus yuam sij, tus yuam sij zais cia, los encrypt thiab decrypt cov ntaub ntawv. Tus yuam sij no yuav tsum tau muab qhia ua ntej ua ntej kev sib txuas lus tuaj yeem tshwm sim
Kuv yuav txuas node liab mus rau tus pab hauv tsev li cas?
Thawj qhov uas koj yuav tsum tau ua yog nruab Node-RED add-on yog li qhib Tsev Pabcuam mus rau Hass.io, Ntxiv-on Store, xaiv Node-RED thiab tom qab ntawd nyem rau ntawm Nruab. Thaum lub installation tiav, mus rau Config thiab nyob rau hauv credential_secret teeb tsa tus password uas yuav siv rau encryption
Dab tsi yog tus tswv tsev ntau tshaj plaws hauv Class C network?
Class C Networks (/24 Prefixes) Nws yog 21-ntsis network tooj nrog 8-ntsis hostnumber. Chav kawm no txhais qhov siab tshaj plaws ntawm 2,097,152 (2 21) / 24 tes hauj lwm. Thiab txhua lub network txhawb nqa txog 254 (2 8 -2) tus tswv. Tag nrho cov chav kawm C network sawv cev rau 2 29 (536,870,912) chaw nyob; yog li nws tsuas yog 12.5% ntawm tag nrhoIPv4