LowPowerLab Forum

Hardware support => RF - Range - Antennas - RFM69 library => Topic started by: chbla on November 12, 2016, 04:45:24 PM

Title: RFM69 on Wemos D1 Mini - compile problem
Post by: chbla on November 12, 2016, 04:45:24 PM
Hi there,

I'm new to all this, and since the ESP8266 consumes quite a lot of power with wifi, I wanted to try out something
that uses less power. I bought some RFM69 and wanted to play around with the possibilities.

As I start I used a basic example of the library: https://gist.github.com/solars/f82d097b2b54a76cb2bf1a17dba95130
But I keep getting error: 'SPCR' was not declared in this scope   _SPCR = SPCR;

Can anyone tell me what's wrong here? Or does anyone have some simple examples I could use?

In the end I want to create a MQTT hub that receives sensor data through the RFM69 and forwards it to my
home automation server.

Thanks a lot,
Christoph
Title: Re: RFM69 on Wemos D1 Mini - compile problem
Post by: Felix on November 14, 2016, 08:38:23 AM
I think your problem is that SPCR is only available on AVR chips.
Title: Re: RFM69 on Wemos D1 Mini - compile problem
Post by: chbla on November 16, 2016, 03:56:54 PM
Hm I thought I already read somewhere that people are using the rfm chips with wemos d1 minis..
Title: Re: RFM69 on Wemos D1 Mini - compile problem
Post by: Felix on November 16, 2016, 04:41:41 PM
If that uses ESP8266 then you should be OK. Others use RFM69+ESP.
But otherwise I have no clue how wemos d1 works.
Title: Re: RFM69 on Wemos D1 Mini - compile problem
Post by: chbla on November 16, 2016, 04:47:12 PM
Yeah the board uses the ESP8266, that's why I thought it works