Send message or command to BBC Micro Bit

조회 수: 1 (최근 30일)
Essa Alsolami
Essa Alsolami 2020년 8월 11일
답변: Christopher Stapels 2021년 9월 7일
plz i desprately need help.
I have created channels on Thingspeak received data like temprature and light sensor, the microbit connected to intenet via ESP266.
what i would like to know is that, could i send messages or commands to micrbit for controlling light ON and OFF? using thingspeak MQTT suscriber or TalkBack. if yes how could that be done ?
Thank you in advance.
  댓글 수: 1
Jason Davies
Jason Davies 2021년 9월 2일
I too would like some help as this is exactly what i am trying to do as well

댓글을 달려면 로그인하십시오.

답변 (1개)

Christopher Stapels
Christopher Stapels 2021년 9월 7일
I think MQTT is the best way to acheive this. I havent used a micro bit, but I found some examples showing how to connect to an MQTT broker in a quick search. USe the MQTT doc to find all the appropriate settings.
Use MQTT subscribe to have the device recieve updates sent to the channel, and change the state of the light accordingly.
Use MQTT publish to set the value of the channel to On or OFF.
You can also use the TalkBack API to achieve this functionality.

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

Help CenterFile Exchange에서 MQTT API에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by