MQTT clientID, USER and Password
조회 수: 2 (최근 30일)
이전 댓글 표시
I am confused that in the CONNECT packet structure for MQTT, 3 parameters are required: ClientID , USER and Password (Assume flags TRUE) . But from my account on Thingspeak, I could not find and distinguise various API KEYs and IDs, whichone to use where ?
My Account on Thingspeak:
Channel:
- ChannelID = 153xxxx
- WRITE API KEY: UEL......
- . READ API KEY: R46......
Click on Profile:
- Username: mwa.....
- User API Key: AFKB......
MQTT: I created a MQTT device with above Channel. It has :
- ClientID: CCw.......
- Usename: CCw.......
- Password: 5O.....
Now, which parameters required in CONNECT packet, PUBLISH packet and SUBSCRIBE packet ?
댓글 수: 0
답변 (1개)
Christopher Stapels
2023년 6월 14일
편집: Christopher Stapels
2023년 6월 14일
Have a look at the MQTT API page. The MQTT basics pageshows you the parameters you need as well as the publish and subscribe pages.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Write Data to Channel에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!