Post by riffelrw on Apr 5, 2020 8:39:36 GMT -8
I'm trying to add functionality to the solar controller / WXLink Mini LP code and can't get it to compile, even the "standard" package from Switchdoc Github.
It looks like a problem in the declaration of the RF_95 object. It's not showing a failure to include the file:
#include <RH_RF95.h>
I'm using the RF_95 library downloaded yesterday from their site.
Was there something I should have substituted or configured in the source? Below are the error messages:
SDL_Arduino_SolarMAX_LoRa_Tx:99:1: error: 'RH_RF95' is not a template
RH_RF95<SoftwareSerial> rf95(COMSerial);
^~~~~~~
\\Mac\Home\Desktop\Projects\SkyWeather\SDL_Arduino_SolarMAX_LoRa_Tx-master\SDL_Arduino_SolarMAX_LoRa_Tx\SDL_Arduino_SolarMAX_LoRa_Tx.ino: In function 'void setup()':
SDL_Arduino_SolarMAX_LoRa_Tx:462:23: error: 'RH_RF95' is not a template
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^~~~~~~
SDL_Arduino_SolarMAX_LoRa_Tx:462:65: error: expected primary-expression before '(' token
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^
\\Mac\Home\Desktop\Projects\SkyWeather\SDL_Arduino_SolarMAX_LoRa_Tx-master\SDL_Arduino_SolarMAX_LoRa_Tx\SDL_Arduino_SolarMAX_LoRa_Tx.ino: In function 'void loop()':
SDL_Arduino_SolarMAX_LoRa_Tx:866:27: error: 'RH_RF95' is not a template
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^~~~~~~
SDL_Arduino_SolarMAX_LoRa_Tx:866:69: error: expected primary-expression before '(' token
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^
Thanks
It looks like a problem in the declaration of the RF_95 object. It's not showing a failure to include the file:
#include <RH_RF95.h>
I'm using the RF_95 library downloaded yesterday from their site.
Was there something I should have substituted or configured in the source? Below are the error messages:
SDL_Arduino_SolarMAX_LoRa_Tx:99:1: error: 'RH_RF95' is not a template
RH_RF95<SoftwareSerial> rf95(COMSerial);
^~~~~~~
\\Mac\Home\Desktop\Projects\SkyWeather\SDL_Arduino_SolarMAX_LoRa_Tx-master\SDL_Arduino_SolarMAX_LoRa_Tx\SDL_Arduino_SolarMAX_LoRa_Tx.ino: In function 'void setup()':
SDL_Arduino_SolarMAX_LoRa_Tx:462:23: error: 'RH_RF95' is not a template
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^~~~~~~
SDL_Arduino_SolarMAX_LoRa_Tx:462:65: error: expected primary-expression before '(' token
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^
\\Mac\Home\Desktop\Projects\SkyWeather\SDL_Arduino_SolarMAX_LoRa_Tx-master\SDL_Arduino_SolarMAX_LoRa_Tx\SDL_Arduino_SolarMAX_LoRa_Tx.ino: In function 'void loop()':
SDL_Arduino_SolarMAX_LoRa_Tx:866:27: error: 'RH_RF95' is not a template
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^~~~~~~
SDL_Arduino_SolarMAX_LoRa_Tx:866:69: error: expected primary-expression before '(' token
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^
Thanks