bphermansson / EspSparsnasGateway

Reads data from Ikea Sparsnäs energy meter and publish via Mqtt.
MIT License
39 stars 27 forks source link

Function to find correct frequency #5

Closed bphermansson closed 6 years ago

bphermansson commented 6 years ago

The transmitter is assumed to send at exactly 868MHz, but that seems to differ between devices. By trial and errror you can get better reception, by changing FREQUENCY in line 69:

uint32_t FREQUENCY = 867980000

It would be nice if the code could find the best frequency by itself.

bphermansson commented 6 years ago

The new plan is to make it possible to send frequency to use by Mqtt to the unit. This way it will also be possible to set the sender id and maybe more.