#include <VirtualWire.h>
void setup()
{
Serial.begin(9600);
Serial.println("setup");
vw_setup(2000);
vw_rx_start();
}
void loop()
{
uint8_t buf[VW_MAX_MESSAGE_LEN];
uint8_t buflen = VW_MAX_MESSAGE_LEN;
if (vw_get_message(buf, &buflen))
{
int i;
for (i = 0; i < buflen; i++)
{
char *token1 = strtok(buf, ":");
if(token1)
{
char *token2 = strtok(NULL, ":");
if(token2)
{
char *token3 = strtok(NULL, ":");
if(token3)
{
// Got all the tokens...
}
}
}
}
}
}
error: invalid conversion from 'uint8_t*' to 'char*'
where to put this code?
(sorry i'am noob)