Was using my WeMos on another project and decided to dismanlle it to use on a different project.it is breadboarded so no big deal here, I created a project and downloaded it to the WeMos , the program loaded, and then I made a change, just added my WiFi credentials and re loaded the program. I heard the familiar tone and then I noticed that the serial monitor did not show anything , I did not see the blue led by the WiFi chip blink anymore. Now for some reason I get the serial,serialutilSerialException: could not open port 'COM6':FileNotFoundError (2 the system could not find the file specified.',None,2).
I check the port under tools and it does not find a port.I tried a different board and its fine so my WeMos died for some reason.I don't believe it is in deep sleep because my code didn't call for it.
I understand the error saying could not find file because it never loaded.
Not sure if there is anyrhing I could do short of tossing the board in the round circular file .I have had this board for about a month and used it maybe 3Xs .Like I said above , it was working then just stopped. Thanks
// Load libraries
#include <ESP8266WiFi.h>
#include <EEPROM.h>
#include <OneWire.h>
#include <DallasTemperature.h>
// Replace with your network credentials
const char* ssid = "*******";
const char* password = "******";
// Auxiliary variables for temperature
//static char celsiusTemp[7];
static char fahrenheitTemp[7];
String temperatureString = ""; // Variable to hold the temperature reading
// EEPROM size
// Address 0: Last output state (0 = off or 1 = on)
// Address 1: Selected mode (0 = Manual, 1 = Auto PIR,
// 2 = Auto LDR, or 3 = Auto PIR and LDR)
// Address 2: Timer (time 0 to 255 seconds)
// Address 3: LDR threshold value (luminosity in percentage 0 to 100%)
#define EEPROM_SIZE 4
// Set GPIOs for: output variable, status LED, PIR Motion Sensor, and LDR
const int output = 15;
const int statusLed = 12;
const int motionSensor = 5;
const int ldr = A0;
// Store the current output state
String outputState = "off";
// GPIO where the DS18B20 is connected to
const int oneWireBus = 4;
// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(oneWireBus);
// Pass our oneWire reference to Dallas Temperature sensor
DallasTemperature sensors(&oneWire);
// Timers - Auxiliary variables
unsigned long now = millis();
unsigned long lastMeasure = 0;
boolean startTimer = false;
unsigned long currentTime = millis();
unsigned long previousTime = 0;
const long timeoutTime = 2000;