MQTT clientID, USER and Password

2 ビュー (過去 30 日間)
Gulzar Singh
Gulzar Singh 2023 年 6 月 6 日
編集済み: Christopher Stapels 2023 年 6 月 14 日
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:
  1. ChannelID = 153xxxx
  2. WRITE API KEY: UEL......
  3. . READ API KEY: R46......
Click on Profile:
  1. Username: mwa.....
  2. User API Key: AFKB......
MQTT: I created a MQTT device with above Channel. It has :
  1. ClientID: CCw.......
  2. Usename: CCw.......
  3. Password: 5O.....
Now, which parameters required in CONNECT packet, PUBLISH packet and SUBSCRIBE packet ?

回答 (1 件)

Christopher Stapels
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.

カテゴリ

Help Center および File ExchangeWrite Data to Channel についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by