It is in the wrong category unless you are using a Nano ESP32, which I suspect that you aren't
Please confirm which actual board you are using
It is in the wrong category unless you are using a Nano ESP32, which I suspect that you aren't
Please confirm which actual board you are using
I am using esp-wroom-32
Take a picture by your Mobile Phone Camera and post.
The realterm software does not require any pin. It shows data on serial port (Port 5) just like serial monitor. Is shows data in all format like hex, ascii etc. i want to read the data of sendData(alphabet, payloadSize, payload); function to make sure it is sending correct data.
Who will be sending data -- you have no data source device/sensor connected?
I've moved the post to the Programming Question category as it turns out you don't have a Nano ESP32
can you confirm this is what you want to achieve?
Yes, Currently i only want to read data using realterm. I want to make sure that the esp32 is sending the correct data.
well then the code is trivial if you need to send HEX Bytes
const byte initCommand[] = {0x49, 0x49, 0x49, 0x54, 0x01, 0x00, 0x00, 0x00 ,0x00};
void setup() {
  Serial.begin(115200);
  while(!Serial);
}
void loop() {
  Serial.write(initCommand, sizeof initCommand);
  delay(5000);
}
or do you mean your sensor expects ASCII communication? (I doubt it)
To receive the data from the sensor you will need to use alternate pins for the UART (or the default for Serial2), get back to us once you have the actual hardware and are experiencing problems.
Shouldn't you be using the ESP32-WROOM-DA Module board under esp32 in tools?
It should be the board files that were made by ESPRESSIF if you are not using the nano.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.