I’m using OMG on a ESP8266 for a while for decoding my RF2 signals, but want to go to an ESP32.
However, I can not find an “RF2” environment in platformio.ini anymore.
Is this not supported anymore? Should I stick to my ESP8266? Or how can I create a “esp32dev-rf2” environment for my Wemos Mini D1 ESP32 ?
And you can create your own esp32dev-rf2 environment by taking [env:esp32dev-multi_receiver] as a starting point and only taking the RF2 relevant parts for your project.
Out of curiosity - any reason why you want to switch over to the Wemos Mini D1 ESP32 instead of keeping the ESP8266 for RF2?
Due to lack of knowledge on my side…
I just trying to find my way in this OMG code and only making progress in (very) small steps…
But I had some spare ESP32’s, and was trying to help my friend who is looking for a way to replace/automate his remote.
Meanwhile, I thought the ESP32 had some more capabilities and power on board so had the idea to replace my own ESP8266 too…
The ESP32 also has the added capability of having on board Bluetooth, which is nice to have when BLE decoding is desired, but for an RF2 gateway the additional power of an ESP32 over the ESP8266 does not really make any real world difference.
Maybe install a BLE OMG version [esp32dev-ble] on your ESP32 to see if you have any relevant compatible Bluetooth devices around, or which you might get in the future
mmm…
I tried the webinstall with the out-of-the box esp32dev-multi_receiver, but after setting the correct settings in the wifi manager (I tripple checked this), the device is not connecting to my network.
From the documentation, I can read
Multi RF library with the possibility to switch between ESPilight, RTL_433_ESP, NewRemoteSwitch and RCSwitch, need CC1101
but I don’t have a CC1101 right now (it’s on its way )
Does OMG detects if this transceiver is connected and refuses to start if not?
PS
This is what I already did on my girlfriends place for a Xiaomi temp/humidity sensor. Works like a charm! (as does my girlfriend)
I would assume so, but haven’t actually tried myself with esp32dev-multi_receiver and nonCC1101 connected as a CC1101 is definitely required for the RTL_433_ESP part.
Good to hear that you’ve tried the BLE gateway as well, and that you’re happy with both of them
Didn’t you have a custom portable _env.ini already set up for another custom environment?
If so you can add all your custom environment definitions into one file, otherwise the advantage of having these portable files diminishes if you have lots and lost of them over time
This means for every single config, I have a directory with the whole code. Not ideal, I know.
This works for me for now, but probably there is “some room for optimization”…
This was a perfect idea! Well done, Mr. NewDeveloper!
Now also have a look on the left side of VSC and click on the alien head (Platformio section), there under PROJECT TASKS you will see all environments, including your custom ones at the bottom, and when expanding them you see Build and Upload options. With this you don’t have to comment/uncomment your default_envs all the time, but can direly build and upload the environment you want.
If you additionally comment out line 16 in platformio.ini ; environments.ini
you will only see you custom environments for a complete custom build and upload experience
PROJECT TASKS reload might be required initially - the round arrow after PROJECT TASKS