Wio LTE PZEM004TV30

Hi everyone. I'm trying to read a PZEM004T 3.0 in the UART port of a Wio LTE Cat1, however the PZEM library is not compatible with the board. I also try to read any value from UART, but without success. Any idea i will be greatful. Thhanks in advance.

#include <WioLTEforArduino.h>
WioLTE Wio;
#define GroveUARTPort Serial

void setup() {
  Wio.Init();
  Wio.PowerSupplyGrove(true);
  SerialUSB.begin(9600);
  GroveUARTPort.begin(9600);
  delay(1000);
}




void loop() {


float recv_str = GroveUARTPort.read();
SerialUSB.print("Recv: ");
SerialUSB.println(recv_str);


String recv_teste = GroveUARTPort.readString();
SerialUSB.println(recv_teste);




  delay(2000);
}

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.