Jump to content









Photo

Is it possible to publish data to mqtt broker other than carriot broker?

mqtt

  • Please log in to reply
1 reply to this topic

#1 Kaveh_Shh

Kaveh_Shh

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 10 August 2018 - 06:05 PM

Is it possible to publish data to mqtt broker other than carriot broker?I

I want to publish data to mosquitto mqtt broker instead of carriot. 

Is it possible? because when i run my listener code in debug mode for test, i get error.

def mqttPublisher = new MQTTPublisher ("iot.eclipse.org", 1883, 2, null, null);

If it's possible i have no username and password on my mqtt broker. how to create mqttPublisher withous username and password?



#2 Yoleon

Yoleon

    Sugar Master

  • Members
  • PipPipPip
  • 50 posts

Posted 20 August 2018 - 09:50 AM

Hi Kaveh_Shh,

 

For free users is not possible to publish through MQTT to an external broker. Also, for your error, it's necessary to set a username although you don't use any authentication in the broker.

 

I hope this helps you.

 

Carriots Staff







Also tagged with one or more of these keywords: mqtt

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users