Mosquito: yonke into oyifunayo uyazi

ibhodi IoT ingcongconi

ngokuqinisekileyo uyazi yintoni ingcongconi, kwaye yiyo loo nto ufikile kweli nqaku, kuba ufuna ukwazi iinkcukacha ezithe vetshe okanye ufuna ukwazi ukuba inokufakwa njani kwindlela yakho yokusebenza. Ukuba awuyazi ukuba yintoni le projekthi yomthombo ovulekileyo, yeyantoni, inokukunceda njani ngayo Iiprojekthi zakho ze-IoT, kwaye yintoni na Inkqubo ye-MQTT ngubani osebenzisa le software.

Yintoni i-MQTT?

Iprotocol ye-MQTT

Ingcongconi isekelwe iprotocol ye-MQTT, emele i-Message Queuing Telemetry Transport. Iprotocol yenethiwekhi yemiyalezo "elula", oko kukuthi, uthungelwano olungathembekanga okanye olunezibonelelo ezilinganiselweyo ngokwe-bandwidth. Ngokuqhelekileyo inokusetyenziswa kumatshini ukuya kumatshini (M2M) unxibelelwano, okanye i-Intanethi yezinto (IoT) uqhagamshelwano.

I-MQTT yenziwe yi UGqr. Andy Stanford-Clark kunye no-Arlen Nipper ngo 1999. Ekuqaleni yayisetyenziselwa i-telemetry yokubeka iliso kwidatha kwishishini leoli kunye negesi eyathunyelwa kwiiseva ezikude. Kuloo maqonga, kwakungenakwenzeka ukuseka uxhulumaniso oluzinzile kakhulu okanye ukubeka intambo esisigxina, ngoko le protocol inokusombulula imida.

Kamva, i-MQTT yayisemgangathweni kwaye ivuliwe, ngoko ngoku yiprotocol yomthombo ovulekileyo olawulwa yi MQTT.org, kwaye uye waba umgangatho we-IoT.

I-MQTT isebenzisa i-TCP / IP ukuba iqhube phezu kwayo kwaye isebenze, kunye ne-topology efana TYHALA/BHALISA. Kwezi nkqubo umntu unokwahlula phakathi:

  • Umthengi: Ezi zixhobo eziqhagamshelweyo ezinganxibelelani ngokuthe ngqo omnye nomnye, kodwa kunoko ziqhagamshelane nomthengisi. Umxhasi ngamnye kwinethiwekhi unokuba ngumshicileli (ukuthumela idatha, njengenzwa), umrhumi (ufumana idatha), okanye zombini.
  • umrhwebi: Yiseva apho abathengi banxibelelana nabo, idatha yonxibelelwano ifika apho kwaye ithunyelwa kwabanye abathengi ofuna ukunxibelelana nabo. Umzekelo we-broker ingaba yiMosquitto.

Kwakhona, iprotocol iqhutywa yisiganeko, ngoko akukho kudluliselwa kwedatha ngamaxesha athile okanye okuqhubekayo. Kuphela xa umxhasi ethumela ulwazi luya kuxakeka inethiwekhi, kwaye umthengisi uthumela kuphela ulwazi kubabhalisi xa idatha entsha ifika. Ngaloo ndlela ugcina i ubuncinci bobungakanani bomthamo osetyenziswayo.

Yintoni iMosquito?

ingcongconi logo

I-Eclipse Mosquito I-software yomthombo wamahhala kunye nevulekileyo, ilayisensi phantsi kwe-EPL / EDL, kwaye isebenza njengomthengisi okanye umlamli wemiyalezo nge-protocol ye-MQTT. Le software ilula kakhulu, ilungele intaphane yezixhobo ezahlukeneyo, ukusuka kwiPC ukuya kwiipleyiti ezifakwe amandla aphantsi.

I-Paho yiprojekthi ehambelanayo enokuthi incedise i-Mosquitto, ukuphumeza iilayibrari zabathengi be-MQTT yeelwimi ezininzi. I-Streamsheets yenye iprojekthi kwi-spreadsheet kunye ne-real-time interface yolawulo lwenkqubo, ukudala iideshibhodi, njl.

Ukongeza, iMosquitto ikwabonelela a C ithala leencwadi ukuphumeza abathengi be-MQTT, kunye nokubandakanya i-mosquitto_pub eyaziwayo kunye nabathengi bomgca womyalelo we-mosquitto_dub. Kwelinye icala, ilula kakhulu, kwimizuzu embalwa unokuhlala eyakho ibaleka, unokuba nomncedisi wovavanyo. test.mosquitto.org, ukuvavanya abathengi ngeendlela ezahlukeneyo (TLS, WebSockets, ...).

Kwaye ukuba unengxaki, iMosquitto ine- uluntu fantastic yophuhliso kwaye uzimisele ukukunceda kwiiforam nakwezinye iindawo.

Iinkcukacha ezithe xaxe - Iwebhu esemthethweni

Uyifaka njani iMosquitto kwinkqubo yakho yokusebenza

Ekugqibeleni, kuya kufuneka uchaze ukuba ungenza njani download Mosquitto kwaye ufake kwinkqubo yakho yokusebenza, ukuze uqalise ukuyivavanya ngeeprojekthi zakho ze-IoT. Kwaye ungayenza ngeendlela ezininzi:

  • Sebenzisa ikhowudi yemvelaphi y yiqokelele ngokwakho.
  • Iibhini: unga Khuphela kwindawo yokukhuphela.
    • Windows: Khuphela kwikhonkco endilishiya i.exe yokubini kuguqulelo lwe-64-bit okanye 32-bit, kuxhomekeke kwinkqubo onayo. Nje ukuba ukhutshelwe, ungayiqhuba. Ukuba uneengxaki, ungafunda i README-windows.md ifayile.
    • Mac: Khuphela ibhinary kwikhonkco lokukhuphela, emva koko usebenzise i-script brew.sh ukufaka iMosquitto.
    • GNU / Linux: Kukho iindlela ezininzi zokuyifakela, njenge:
      • Ubuntu kunye nezinye ii-distros ezinomyalelo wokubaleka: khawuleza ufake ingcongconi
      • Debian: sudo apt-yongeza-repository ppa:mosquitto-dev/mosquitto-paa & sudo apt-fumana uhlaziyo & sudo apt-fumana ukufaka ingcongconi
      • Ngakumbi: Ikwafumaneka kwezinye ii-distros, kunye neRaspberri Pi ukusuka kwindawo yokugcina esemthethweni.
    • abanye: Bona ulwazi oluninzi kwi le webhu yeMosquitto binaries.

Emva koku, uya kuba sele uneMosquitto efakwe kwinkqubo yakho yokusebenza kunye iya kuba ilungile ukusebenzisa okanye ukulawula njengoko ufuna, njenge kunye noCelado.


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Yiba ngowokuqala ukuphawula

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa.

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.

Uvavanyo lwesiNgesiVavanya isiCatalanImibuzo yeSpanish