I am working on pic32mz curiosity dev board demo.
I’ll go straight to the point:
initially the board didn’t connect to the broker until I changed gateway and dns addresses in the project. Now when I try to change them, they remain set as the current ones.
Furthermore the IP address that shows me in the terminal is different from what is set by default in the project.
Why i can’t reset the addresses?
And another question, how can i switch from wifi to ethernet?
Specifically, the section +“Configure Your Project”+ walks you through to set up your endpoint and other credentials.
When you connect to a WiFi Access Point, IP address is not set by the project but the Access Point assigns it. That’s the reason you see a different IP address.
You need to define the following project level macro to use ethernet:
I followed the instruction in that page, but the board sometimes did not connect.
Now that I switched to ethernet it always works, so thank you!
Another two question:
-IP address is setted by access point also in Ethernet, right?
-What is the use of this piece of code if the addresses are set differently?
in the file “system_config.h”:
I recently bought the PIC32MZ EF “bundle” and followed the getting started page from AWS. Everything worked until I got to the “Rebuild your project”. The build contained errors. What version of MPLAB X, XC32, and Harmony did you use to make it work?