@clivec If you look in the MySensors code, wifi is not an option for the radio transport. You'd have to somehow write your own deal for that, and it would likely get really involved.
ESP32 is supported for a gateway, where the wifi is the backhaul transport, effectively, but you would need a separate radio for the MySensors side of things.
To use an ESP32 on its own, without a separate radio, you might look into something like https://esphome.io/ This does not allow for interaction with MySensors directly, though. What is your ultimate plan? An ESP32 is very power hungry when on wifi, so it wouldn't work as a battery-powered device very well. They're pretty cheap, and easy to get a hold of, so if you have them plugged into mains power then you could use them alongside a MySensors network. Maybe with something like Home Assistant controlling both and providing a link from one to the other if needed?
Maybe you haven't been getting much interaction here because it doesn't fit very well with MySensors. I've seen your previous posts, but since I haven't tried to connect any ESP32 devices to the network, I didn't have any input for you. (I prefer my backhaul to be wired, so the ESP32 wifi was a negative, in my book.)
I mean, I have nothing against ESP32 for other things, but for me it has no place in the MySensors network at all.
I really got inspired. I ordered a flowmeter and the plumbing to check it out. I wrote code that actually works.
The 5V from the Arduino can drive the sensor. I'll be putting it all together this weekend.
My goal is to determine how much water I'm extracting from the seep on my property.
I'm having fun
And here's the completed unit I have not really tested the range yet ,
but should be good , the receiver units (telemetry units) can work in latching mode and in push button mode easy
I am pretty sure this setup will last longer than fibrio key fob , easy to pair receiver with key fob
I have 3 key fobs ,, yes why ??? well they will break and I rather purchase few ,for an investment for the future
Maybe some can help me with other project the stamp m5 pico trying to program it is a standard switch node
Hi, there are some setters for message payload types but none for type String, see: Message manipulation.
You need to convert the resulting String into const char* like this:
send(msg.set(("string " + String(expectedScratchpadValues)).c_str()));
But in general I would try to avoid usage of the String data type, especially for the use case in your code example. You could use e.g.:
sprintf(str, "string %d", expectedScratchpadValues);
For Arduino String read more e.g. here: The Evils of Arduino Strings
@davedeluxe I ordered the PCB from JLCPCB. The design is available here:
And the sketch is available here:
I received the CLUE and it works very nicely--just like you'd expect a proper Arduino board to work: some basic hardware abstraction, a familiar easy-to-use Arduino IDE, easy familiar compiles, easy familiar uploads, and easy familiar access to serial input/output.
Time flies! This thread is already 5 years old, but I'm re-reading it now to refresh myself on all the little details that I've forgotten.
My pleasure, I've gotten a lot of good ideas from the Forum, its always good to give back.
My washing machine leak sensor alerted me to a leak about 3 weeks. I checked, and sure enough, there was a small puddle of water under the machine. The door seal was wearing and had a few tears in the bellows.
I replaced the door seal (thank you youtube videos) and all is good. The washing machine is on the upper floor in my home and could have done serious damage to the lower level if it hadn't been detected quickly.