I replaced #include "ThingSpeak.h" with a Wifi library, I also changed some of the other code as well so that there are no errors. And one more thing,I changed the baud rate from 115200 to 9600.
_____________________________________________________________________________
#include <WiFi.h>
#include <WiFiClient.h>
#include <WiFiServer.h>
#include <WiFiUdp.h>
___________________________________________________________________________________
Also in the examples in the github for the esp8266 you have to change the code to this or it gives you this error (below) or a "does not recognize char or int".
(Code)
#include <ESP8266WiFi.h>
#include "secrets.h"
String ssid = "########r"; // AP NAME
String pass = "########"; // AP PASSWORD
String API = "#########"; // Write API KEY
WiFiClient client;
_____________________________________________________________________________________
(Error)
test:1:15: error: 'Name' was not declared in this scope
1 | char ssid[] = Name; // your network SSID (name)
| ^~~~~~~~~~~
test:2:15: error: 'Password' was not declared in this scope
2 | char pass[] = Password ; // your network password
| ^~~~~~~~~~~
test:4:1: error: 'WiFiEspClient' does not name a type
4 | WiFiEspClient client;
| ^~~~~~~~~~~~~
test:7:1: error: expected declaration before '}' token
7 | }
| ^
exit status 1
'SECRET_SSID' was not declared in this scope
____________________________________________________________
But I figured it out and got it working, Thanks for all your help and good luck with your project with the firebeetle boards, I love the firebeetle board, but they have a lot of problems sometimes also if you ever are using the esp8266 I highly recommend using these. Thanks again and have a great day.
http://arduino.esp8266.com/stable/package_esp8266com_index.json
http://download.dfrobot.top/FireBeetle/package_firebeetle8266_index.json