• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

MTTQ and Peter scargill schript

Q&A Forum › MTTQ and Peter scargill schript
0 Vote Up Vote Down
gj.linthorst asked 6 years ago
3 Answers
0 Vote Up Vote Down
gj.linthorst answered 6 years ago

I downloaded The Script from https://tech.scargill.net/the script.I installed it on a raspberry pi 2 and raspberry pi 3+ on a clean pi image. When I run the program MQTT in the python cource I get the following error:
ESp 1
download ok
exe(open(‘main.py’).read(),globals(0)
Traceback (most recent call last):”
File “”, lineect_and_subscribe
File “umqttsimple.py”, line 102 in connect
MQTTException: 5
ESp 2
download ok
exe(open(‘main.py’).read(),globals(0)
Traceback (most recent call last):”
File “”, ect_and_subscribe
File “umqttsimple.py”, line 102 in connect
MQTTException: 5

I hope you can exlain what the problem is because with this sript installed i have many more node’s and especial big timer and my web pages 1880 and 1880/ui can only be opened with username and password. Up to now it looks like the web pages work good.

jan

0 Vote Up Vote Down
gj.linthorst answered 6 years ago

I solved the problem bij changing line 10 and 9 in the main files with the folowing

client = MQTTClient(client_id, mqtt_server, user=b'your_user', password=b'your_pass')
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

I’m glad you were able to fix it! Thanks for posting the solution, I’ll mark this thread as “Resolved”.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.