Setup MQTT Error

Good day

@roryaronson I have successfully uploaded the Arduino code to the board.
Any idea what could be wrong here?

Keep getting these errors.

Want to run ruby farmbot.rb now?
Conencting to
/usr/local/rvm/gems/ruby-2.3.0/gems/em-mqtt-0.0.5/lib/em/mqtt/client_connection.rb:181:in connect_ack': Connection refused: not authorised (MQTT::ProtocolException) from /usr/local/rvm/gems/ruby-2.3.0/gems/em-mqtt-0.0.5/lib/em/mqtt/client_connection.rb:163:inprocess_packet’
from /usr/local/rvm/gems/ruby-2.3.0/gems/em-mqtt-0.0.5/lib/em/mqtt/connection.rb:37:in receive_data' from /usr/local/rvm/gems/ruby-2.3.0/gems/eventmachine-’
from /usr/local/rvm/gems/ruby-2.3.0/gems/eventmachine- run' from /root/farmbot-raspberry-pi-controller/lib/farmbot-pi.rb:29:instart’
from farmbot.rb:5:in <top (required)>' from setup.rb:62:inload’
from setup.rb:62:in `’

Kind regards,

I’m assuming your pointing your Bot to I’ve seen a similar error. You could point your Bot to and setup an account, if your not using your own MQTT server, Api, and front end.

I’ve seen previous posts about and it does connect when used instead. Just run ruby setup.rb again and input the new domain.

1 Like