Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Clarified my question
Source Link
Chiwda
  • 252
  • 1
  • 3
  • 11

I have multiple Arduino WeMos D1 boards, with a mix of versions bought months apart. One of these boards is working but I need to update it and I am not sure if it is R1 or R2 (the pinouts are different). I do not have physical access to it (it is 200+ miles away in an area that is locked down) but I can connect through another device over WiFi.

It has the following included:

#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>

#include <WiFiUdp.h>
#include <ArduinoOTA.h>

So, I can even browse to a Webserver to run commands. How can I add to the code (or even replace it) to return a value that tells me which version the board is? According to this you can do it with an AT command, but I am not sure how to pass an AT command from the WebServer interface (or any other way).

EDIT: I guess I may have confused the issue with my phrasing. I can connect to the board and upload a new sketch (using OTA). My question is, can I put something in a new sketch to determine the board details and upload it. Once I get that, I can then put in a the actual sketch that I want.

I have multiple Arduino WeMos D1 boards, with a mix of versions bought months apart. One of these boards is working but I need to update it and I am not sure if it is R1 or R2 (the pinouts are different). I do not have physical access to it (it is 200+ miles away in an area that is locked down) but I can connect through another device over WiFi.

It has the following included:

#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>

#include <WiFiUdp.h>
#include <ArduinoOTA.h>

So, I can even browse to a Webserver to run commands. How can I add to the code (or even replace it) to return a value that tells me which version the board is? According to this you can do it with an AT command, but I am not sure how to pass an AT command from the WebServer interface (or any other way).

I have multiple Arduino WeMos D1 boards, with a mix of versions bought months apart. One of these boards is working but I need to update it and I am not sure if it is R1 or R2 (the pinouts are different). I do not have physical access to it (it is 200+ miles away in an area that is locked down) but I can connect through another device over WiFi.

It has the following included:

#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>

#include <WiFiUdp.h>
#include <ArduinoOTA.h>

So, I can even browse to a Webserver to run commands. How can I add to the code (or even replace it) to return a value that tells me which version the board is? According to this you can do it with an AT command, but I am not sure how to pass an AT command from the WebServer interface (or any other way).

EDIT: I guess I may have confused the issue with my phrasing. I can connect to the board and upload a new sketch (using OTA). My question is, can I put something in a new sketch to determine the board details and upload it. Once I get that, I can then put in a the actual sketch that I want.

deleted 3 characters in body
Source Link
Chiwda
  • 252
  • 1
  • 3
  • 11

I have multiple Arduino WeMos D1 boards, with a mix of versions bought months apart. One of these boards is working but I need to update it and I am not sure if it is R1 or R2 (the pinouts are different). I do not have physical access to it (it is 200+ miles away in an area that is locked down) but I cannotcan connect through another device over WiFi.

It has the following included:

#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>

#include <WiFiUdp.h>
#include <ArduinoOTA.h>

So, I can even browse to a Webserver to run commands. How can I add to the code (or even replace it) to return a value that tells me which version the board is? According to this you can do it with an AT command, but I am not sure how to pass an AT command from the WebServer interface (or any other way).

I have multiple Arduino WeMos D1 boards, with a mix of versions bought months apart. One of these boards is working but I need to update it and I am not sure if it is R1 or R2 (the pinouts are different). I do not have physical access to it (it is 200+ miles away in an area that is locked down) but I cannot connect through another device over WiFi.

It has the following included:

#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>

#include <WiFiUdp.h>
#include <ArduinoOTA.h>

So, I can even browse to a Webserver to run commands. How can I add to the code (or even replace it) to return a value that tells me which version the board is? According to this you can do it with an AT command, but I am not sure how to pass an AT command from the WebServer interface (or any other way).

I have multiple Arduino WeMos D1 boards, with a mix of versions bought months apart. One of these boards is working but I need to update it and I am not sure if it is R1 or R2 (the pinouts are different). I do not have physical access to it (it is 200+ miles away in an area that is locked down) but I can connect through another device over WiFi.

It has the following included:

#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>

#include <WiFiUdp.h>
#include <ArduinoOTA.h>

So, I can even browse to a Webserver to run commands. How can I add to the code (or even replace it) to return a value that tells me which version the board is? According to this you can do it with an AT command, but I am not sure how to pass an AT command from the WebServer interface (or any other way).

Source Link
Chiwda
  • 252
  • 1
  • 3
  • 11

How to get version of Arduino board remotely

I have multiple Arduino WeMos D1 boards, with a mix of versions bought months apart. One of these boards is working but I need to update it and I am not sure if it is R1 or R2 (the pinouts are different). I do not have physical access to it (it is 200+ miles away in an area that is locked down) but I cannot connect through another device over WiFi.

It has the following included:

#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>

#include <WiFiUdp.h>
#include <ArduinoOTA.h>

So, I can even browse to a Webserver to run commands. How can I add to the code (or even replace it) to return a value that tells me which version the board is? According to this you can do it with an AT command, but I am not sure how to pass an AT command from the WebServer interface (or any other way).