Author Topic: RFM69 on Wemos D1 Mini - compile problem  (Read 1690 times)

chbla

  • NewMember
  • *
  • Posts: 12
  • Country: at
RFM69 on Wemos D1 Mini - compile problem
« 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

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: RFM69 on Wemos D1 Mini - compile problem
« Reply #1 on: November 14, 2016, 08:38:23 AM »
I think your problem is that SPCR is only available on AVR chips.

chbla

  • NewMember
  • *
  • Posts: 12
  • Country: at
Re: RFM69 on Wemos D1 Mini - compile problem
« Reply #2 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..

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: RFM69 on Wemos D1 Mini - compile problem
« Reply #3 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.

chbla

  • NewMember
  • *
  • Posts: 12
  • Country: at
Re: RFM69 on Wemos D1 Mini - compile problem
« Reply #4 on: November 16, 2016, 04:47:12 PM »
Yeah the board uses the ESP8266, that's why I thought it works