• 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

ESP8266

Q&A Forum › Category: ESP8266 › ESP8266
0 Vote Up Vote Down
Kobus Steenkamp asked 7 months ago

Good day,
I have tried uploading one of your codes for a ESP8266 on Arduino but get the fault status “too many decimal points in number” on #define MQTT_HOST IPAddress (xxx.xxx.x.xxx)
Please assist me?
Kind regards,
Kobus

Question Tags: Arduino Code
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 7 months ago

Hi.
You must use commas instead of points.
Make sure to insert your Mosquitto broker IP address in this format:
#define MQTT_HOST IPAddress (xxx., xxx, x, xxx)
For example:
#define MQTT_HOST IPAddress (192., 168, 1, 194)
 
I hope this helps.
 
Regards,
Sara

0 Vote Up Vote Down
Kobus Steenkamp answered 7 months ago

Hi Sara,
Thank you so much,it works just fine!
I have also bought one of your online books and it is the best money you can spend!
Please keep up the good work.
Kind regards,
Kobus

0 Vote Up Vote Down
Sara Santos Staff answered 7 months ago

That’s great.
I’m glad you find our eBook helpful.
Regards,
sara

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.