Virtualwire not working with NODEMCU 12E

Hi ALL,

I’m doing project involving nodemcu 12e and virtual wire. When i compile the coding,there are some error that i couldn’t solve. Could anyone help me please??

The error is :-
C:\Program Files (x86)\Arduino\libraries\VirtualWire\VirtualWire.cpp:16:24: fatal error: util/crc16.h: No such file or directory

#include <util/crc16.h>

Below is my coding:

#include <SoftwareSerial.h>
#include <ESP8266WiFi.h>
#include <ThingSpeak.h>
#include <VirtualWire.h>

SoftwareSerial NodeSerial(D2, D3); // RX | TX
WiFiClient client;

const char* ssid = "**";
const char
password = “********”;
const char
host = “ESP8266”;

int ledpin = 13;
uint8_t data[1];
int i;

void setup() {
pinMode(D2, INPUT);
pinMode(D3, OUTPUT);
Serial.begin(115200);
NodeSerial.begin(9600);

Serial.println("Connecting to wifi: ");
Serial.println(ssid);
Serial.flush();

WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println(" IP address: ");
Serial.println(WiFi.localIP());

pinMode(13, OUTPUT);
vw_set_ptt_inverted(true);
vw_set_tx_pin(36);// DATA tranmitter connect to pin dig. 36
vw_setup(2000);
}
void loop() {
while (NodeSerial.available() > 0) {
int BufferA = NodeSerial.parseInt();
Serial.println(BufferA);

i = (ThingSpeak.readIntField(,1,"*"));
if (i==1){
data[0] = 1;
digitalWrite(ledpin, HIGH);
vw_send(data, sizeof(data)); //Send data
vw_wait_tx();

}
//if (snap==0){
if (i==0){
data[0] = 0;
digitalWrite(ledpin,LOW);

}
}
}

TQ in advance.

Below is my coding:

Incorrectly posted, and it is NOT where the error is.

The compiler told you where the problem is. You need to investigate that code.

Does the VirtualWire folder contain a util folder? Does the util folder contain a crc.h file?

Why do you assume that the VirtualWire library (obsolete) will work on your not-really-an-Arduino?