Hoping this is an easy fix for someone...
Code if for a CC1101 using panstamp cc1101 library.
Google gives a lot of discussion but no solution that works for me.
I also tried using a string var, int var and char var, but still get the error.
// Variable Declaration
-----------------------
byte syncWord = 199;
// Line 28 of void loop
-------------------------
RFM.setSyncWord(&syncWord, false);
The above bits of code give the below error message when compiling:
CC1101_Rx.ino: In function 'void setup()':
CC1101_Rx.ino:28:35: error: invalid conversion from 'char*' to 'uint8_t {aka unsigned char}' [-fpermissive]
In file included from CC1101_Rx.ino:4:0:
C:\Users\ais\Documents\Arduino\libraries\cc1101_panstamp/cc1101.h:465:10: error: initializing argument 1 of 'void CC1101::setSyncWord(uint8_t, uint8_t)' [-fpermissive]
void setSyncWord(uint8_t syncH, uint8_t syncL);
@Hackscribble : Unfortunately both those lines of code throw up an error...
CC1101_Rx.ino:28:28: error: invalid conversion from 'char*' to 'byte* {aka unsigned char*}' [-fpermissive]
CC1101_Rx.ino:29:41: error: invalid conversion from 'byte* {aka unsigned char*}' to 'uint8_t {aka unsigned char}' [-fpermissive]
Good catch!
I had been messing with the code and had split the declaration and assigning a value before testing your code.
With it back to the original format, that error has cleared - thanks a bunch
Now I have a million other errors
I am using some code from the internet as a base, but it is a few years old.
Unfortunately it seems the linked libraries have changed over time, so I keep getting compile errors.
Also I am using 1.5.7 of the IDE, so that might be another issue.
Here is a link to the original code: Arduino : use a Texas CC1101 – Erwan's Blog
Many of the functions appear to be germane only to the Panstamp library, so Electrohouse library does not work, in spite of the statement on the site that it does.