RFM69 on Wemos D1 Mini - compile problem

Started by chbla, November 12, 2016, 04:45:24 PM

chbla

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

Felix

I think your problem is that SPCR is only available on AVR chips.

chbla

Hm I thought I already read somewhere that people are using the rfm chips with wemos d1 minis..

Felix

If that uses ESP8266 then you should be OK. Others use RFM69+ESP.
But otherwise I have no clue how wemos d1 works.

chbla

Yeah the board uses the ESP8266, that's why I thought it works