- This topic has 2 replies, 2 voices, and was last updated 2022-06-16 at 6:55 PM by .
- You must be logged in to reply to this topic.
Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water. Home › Forums › Environmental Sensors › Error setting Hydros21 address
I’m getting the error “Not a valid address” when using the b_address_change.ino sketch in Arduino IDE. However, the address does appear to be getting set as expected, and I can change it to 2 and back to 1; it outputs the error each time, so it just looks a little odd. I’ll attach the output from the serial monitor below.
This is with a new Gen 2 sensor, which may or may not be related; I normally don’t use Arduino IDE, so maybe this sketch has always done this. I don’t get the error when using the same sketch via VSCode. I’ve emptied Arduino’s Libraries folder and replaced the contents with the latest EnviroDIY libraries.
When you’re connected to the Mayfly with your computer, open the Arduino IDE’s Serial Monitor and check the settings of the dropdown box in the lower right hand part of the windows next to the baud rate. It should be set to “No line ending”. If you have it set to anything else, you’ll usually get an error when setting the address using that sketch because you’re sending it the address character AND a line ending or carriage return. Saying “No line ending” should fix it.
That was it – thanks!
-Matt
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Websites store cookies to enhance functionality and personalize your experience. You can manage your preferences, but blocking some cookies may impact site performance and services
Essential cookies enable basic functions and are necessary for the proper function of the website.
CleanTalk offers effective spam protection and website security solutions to enhance user experience.
Service URL: cleantalk.org (opens in a new window)
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
WooCommerce is a customizable eCommerce platform for building online stores using WordPress.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
SourceBuster is used by WooCommerce for order attribution based on user source.
You can find more information in our Cookie Policy and Privacy Policy.