Replies: 4 comments 4 replies
-
To add user sensor values to paxcounter:
|
Beta Was this translation helpful? Give feedback.
-
and if you need to do a kind of setup or init your sensor once a startup you can use sensor_init() in sensor.cpp. here is an example I did with scd30 (co2) sensor. void sensor_init(void) { // this function is called during device startup SCD30WIRE.begin(); } |
Beta Was this translation helpful? Give feedback.
-
you can see a full quick example in pull request #780 . |
Beta Was this translation helpful? Give feedback.
-
I don't know if this is supposed to be obvious. But I have no idea which pins to use for the custom sensor on my TTGO T-Beam. |
Beta Was this translation helpful? Give feedback.
-
Hello,
i try to customize paxcounter for the Lilygo/TTGO T-Higrow board.
This device has serveral sensors already on board.
And there are some good projects to make this information availabel with MQTT.
The LoraWan example is very simple and not power optimized.
This is why i tried to combine the paxcounting with more environmental monitoring.
I already managed to grab information from the ligthsensor (BH1750) and from a DHT11 (some newer version already have a bme280).
But i am stuck with the user sensor part.
Does someone have a simple example how to grab the sensor data and push it in the payload buffers?
If anybody is interested in an information exchange about the sensor handling?
As there are diffrent version in the market there is not the one and only way how to make the setup right.
Some discussion, for example about soil moisture sensor calibration, is welcome.
Beta Was this translation helpful? Give feedback.
All reactions