• 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

Problem with mesh network

Q&A Forum › Category: Questions › Problem with mesh network
0 Vote Up Vote Down
Michel Tremblay asked 5 years ago

Hello
I have a little problem with the program. I try the second program with the bme280 and two wemos d1 r1. I take care to name my Mesh network and my mesh passwords too. moreover I change the id for my two boards, that is to say 1 and 2. the compilation is done without error.
the message i have on the two serial ports is:
setLogLevel: ERROR | STARTUP |
STARTUP: init (): 1
STARTUP: AP tcp server established on port 5555
and nothing else. I tried with platformio and I have another problem that I will tell you about later so as not to mix things up
Are there a few things that I haven’t done or something that I should do
Michel

10 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Michel.
Do you have another board to experiment with besides the wemos board?

0 Vote Up Vote Down
Michel Tremblay answered 5 years ago

Bonjour Sara,
j’ai fait quelques tests. Tout d’abord, j’ai pris votre programme tel quel sans changer les mots de passe mais en changeant l’identifiant. Tout fonctionne avec wemos, NodeMcu et esp32 et mixé aussi. Par contre quand je mets le nom de MESH_prefix …. jardin et mot de passe cecile. Et là, j’ai eu le même problème qu’au début
setLogLevel: ERROR | STARTUP |
DEMARRAGE: init (): 1
DEMARRAGE: serveur tcp AP établi sur le port 5555
Pourriez-vous essayer ceci s’il vous plaît

Merci pour votre aide et aider toute la communauté comme vous le faites
Michel

0 Vote Up Vote Down
Michel Tremblay answered 5 years ago

Bonjour Sara
Voici ce qui m’arrive lorsque je compile le programme avec platformio. lorsque je compile le programme. Voici également une image de mon fichier .ini.

Voici mon fichier platform.ini

[env: d1]
plateforme = espressif8266
pension = d1
cadre = arduino
monitor_speed = 115200
lib_deps =
    painlessmesh/painlessMesh@^1.4.5
    arkhipenko/TaskScheduler@^3.2.0
    me-no-dev/ESPAsyncTCP@^1.2.2
    Adafruit / Adafruit Unified Sensor@^1.1.4
    adafruit / Adafruit BME280 Library@^2.1.2
    arduino-libraries/Arduino_JSON@^0.1.0

et mon erreur

 mesh / .pio / libdeps / d1 / painlessMesh / src / painlessmesh / ota.hpp “,
” owner “:” cpp “,
” severity “: 4,
” message “:” ‘SPIFFS’ est obsolète (déclaré à C: \\ Users \\ miche \\. Platformio \\ packages \\ framework-arduinoespressif8266 \\ cores \\ esp8266 / FS.h: 269): SPIFFS est obsolète. Veuillez envisager de passer à LittleFS ou à d’autres systèmes de fichiers. [-Wdeprecated-declarations] “,
” startLineNumber “: 310,
” startColumn “: 3,
” endLineNumber “: 310,
” endColumn “: 3
}
Et si je clique sur l’erreur ici fait partie du fichier

IFFS.begin (true ); //
Démarre le système de fichiers Flash SPI #else
SPIFFS.begin ();

fichier auto = SPIFFS.open (currentFW-> ota_fn, “r”);

 

Tout ce qui concerne les spiffs est faux

Tank pour votre aide

Michel

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Michel.
I have little knowledge about French. So, even after using translator, it is a bit difficult to understand what you mean.
To solve your SPIFFS problem, replace all “SPIFFS” with “LittleFS” in your code.
Additionally, add the following line in your platformio.ini file:

board_build.filesystem = littlefs

I’m sorry, but I didn’t understand your first response.
Regards,
Sara

0 Vote Up Vote Down
Michel Tremblay answered 5 years ago

Hello Sara,
First of all, excuse me for the message in French that I sent you.
So for my problem, I found out what was wrong. Quite simply, it was necessary to keep the word MESH in the password and in the network name as well.
#define MESH_PREFIX ”michelMESH” // name of your MESH
#define MESH_PASSWORD ”MESH1234” // password for your MESH
On the other hand, if we delete them

#define MESH_PREFIX ”michel” // name of your MESH
#define MESH_PASSWORD ”1234“ // password for your MESH

there is an error like
setLogLevel: ERROR | STARTUP |
START: init (): 1
STARTING: tcp AP server established on port 5555
and nothing else happens.

.???????
Again thank you for your help.
Michel

0 Vote Up Vote Down
Michel Tremblay answered 5 years ago

Hello again
I have worked with 3 wemos, 1 esp32 and a nodemcu. Everything works wonderfully.
You can close this request.
Thank you
 
Michel

0 Vote Up Vote Down
Michel Tremblay answered 5 years ago

Weird. It does not make sense . I did several tests by removing MESS and putting it back with the network name and password. And every time I put it on it didn’t work and taking it off it worked. It’s so weird. Is it me who …..
 
Michel

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
Yes, it is very weird.
Maybe it is related with the number of characters and not with the word “MESH” itself.
Regards,
Sara

0 Vote Up Vote Down
Michel Tremblay answered 4 years ago

Hello Sara
You are right. I put the same number of characters and it works.
Thanks again for your help.
You can close this question

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Great!
I’ll mark this issue as resolved.
If you need further help, you just need to open a new question in our forum.
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

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition 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.