Post by pdkwork on Dec 8, 2020 17:35:28 GMT -8
I just received the WXLink with the 2 Two Mini Pro LP Arduino Boards. Neither of the boards are marked as RX or TX so I figure I need to program them. I downloaded the github repository for the TX and RX board using the link from SwitchDoc. Since I plan on using it with the Weatherboard V2, I figured I only need to program the TX board.
Following the readme file I installed the RH_RF95 library in the Documents\Arduino\libraries directory and also installed Time and Jeelib in the same library location. I guess the first question is that the right location?
I selected the board as Arduino Pro or Pro Mini at ATmega328P (5V 16MHz). I think this is the correct board for the Mini Pro LP.
When I compile the program I get the error 'RH_RF95' is not a template with this line highlighted
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
What am I missing?
SDL_Arduino_WXLink_LoRa_Tx:86:1: error: 'RH_RF95' is not a template
RH_RF95<SoftwareSerial> rf95(COMSerial);
^~~~~~~
C:\Users\pdkwo\OneDrive\Documents\Arduino\Projects\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx.ino: In function 'void setup()':
SDL_Arduino_WXLink_LoRa_Tx:467:27: error: 'RH_RF95' is not a template
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^~~~~~~
SDL_Arduino_WXLink_LoRa_Tx:467:69: error: expected primary-expression before '(' token
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^
C:\Users\pdkwo\OneDrive\Documents\Arduino\Projects\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx.ino: In function 'void loop()':
SDL_Arduino_WXLink_LoRa_Tx:817:27: error: 'RH_RF95' is not a template
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^~~~~~~
SDL_Arduino_WXLink_LoRa_Tx:817:69: error: expected primary-expression before '(' token
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^
exit status 1
'RH_RF95' is not a template
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
SDL_Arduino_WXLink_LoRa_Tx:86:1: error: 'RH_RF95' is not a template
RH_RF95<SoftwareSerial> rf95(COMSerial);
^~~~~~~
C:\Users\pdkwo\OneDrive\Documents\Arduino\Projects\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx.ino: In function 'void setup()':
SDL_Arduino_WXLink_LoRa_Tx:467:27: error: 'RH_RF95' is not a template
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^~~~~~~
SDL_Arduino_WXLink_LoRa_Tx:467:69: error: expected primary-expression before '(' token
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^
C:\Users\pdkwo\OneDrive\Documents\Arduino\Projects\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx.ino: In function 'void loop()':
SDL_Arduino_WXLink_LoRa_Tx:817:27: error: 'RH_RF95' is not a template
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^~~~~~~
SDL_Arduino_WXLink_LoRa_Tx:817:69: error: expected primary-expression before '(' token
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^
exit status 1
'RH_RF95' is not a template
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Following the readme file I installed the RH_RF95 library in the Documents\Arduino\libraries directory and also installed Time and Jeelib in the same library location. I guess the first question is that the right location?
I selected the board as Arduino Pro or Pro Mini at ATmega328P (5V 16MHz). I think this is the correct board for the Mini Pro LP.
When I compile the program I get the error 'RH_RF95' is not a template with this line highlighted
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
What am I missing?
SDL_Arduino_WXLink_LoRa_Tx:86:1: error: 'RH_RF95' is not a template
RH_RF95<SoftwareSerial> rf95(COMSerial);
^~~~~~~
C:\Users\pdkwo\OneDrive\Documents\Arduino\Projects\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx.ino: In function 'void setup()':
SDL_Arduino_WXLink_LoRa_Tx:467:27: error: 'RH_RF95' is not a template
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^~~~~~~
SDL_Arduino_WXLink_LoRa_Tx:467:69: error: expected primary-expression before '(' token
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^
C:\Users\pdkwo\OneDrive\Documents\Arduino\Projects\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx.ino: In function 'void loop()':
SDL_Arduino_WXLink_LoRa_Tx:817:27: error: 'RH_RF95' is not a template
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^~~~~~~
SDL_Arduino_WXLink_LoRa_Tx:817:69: error: expected primary-expression before '(' token
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^
exit status 1
'RH_RF95' is not a template
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
SDL_Arduino_WXLink_LoRa_Tx:86:1: error: 'RH_RF95' is not a template
RH_RF95<SoftwareSerial> rf95(COMSerial);
^~~~~~~
C:\Users\pdkwo\OneDrive\Documents\Arduino\Projects\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx.ino: In function 'void setup()':
SDL_Arduino_WXLink_LoRa_Tx:467:27: error: 'RH_RF95' is not a template
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^~~~~~~
SDL_Arduino_WXLink_LoRa_Tx:467:69: error: expected primary-expression before '(' token
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^
C:\Users\pdkwo\OneDrive\Documents\Arduino\Projects\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx\SDL_Arduino_WXLink_LoRa_Tx.ino: In function 'void loop()':
SDL_Arduino_WXLink_LoRa_Tx:817:27: error: 'RH_RF95' is not a template
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^~~~~~~
SDL_Arduino_WXLink_LoRa_Tx:817:69: error: expected primary-expression before '(' token
rf95.setModemConfig(RH_RF95<SoftwareSerial>::ModemConfigChoice(Bw31_25Cr48Sf512));
^
exit status 1
'RH_RF95' is not a template
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.