Posts

Showing posts from March, 2022

NodeMCU Servo WIFI

 #include <Servo.h> #include <ESP8266WiFi.h>             #include <ESP8266WebServer.h> ESP8266WebServer server(80);   //Web server object. Will be listening in port 80 (default for HTTP) Servo myservo;  // create servo object to control a servo // twelve servo objects can be created on most boards int pos = 0;    // variable to store the servo position void setup() {     myservo.attach(14);  // attaches the servo on GIO2 to the servo object          Serial.begin(115200);     WiFi.begin("DIGI-N8mK", "abcde#12345"); //Connect to the WiFi network          while (WiFi.status() != WL_CONNECTED) { //Wait for connection       delay(500);       Serial.println("Waiting to connect…");     }          Seri...

Wsl 2 node-gyp error

 npm install -g node-gyp make

WSL2 Laravel Environment

                Get Laravel to work well with the reverse-proxy: app/Http/Middleware/TrustProxies.php protected $proxies = '*' ;