Skip to content

Instantly share code, notes, and snippets.

/*
Autor: Vidal Bazurto (avbazurt@espol.edu.ec)
GitHub: https://github.com/avbazurt/CURSO-PLC-LAB
Practica #9: MQTT PZEM-014/016 AC Energy Meter
*/
#include <WiFi.h>
extern "C" {
#include "freertos/FreeRTOS.h"
#include "freertos/timers.h"
}
/*
Autor: Vidal Bazurto (avbazurt@espol.edu.ec)
GitHub: https://github.com/avbazurt/CURSO-PLC-LAB
Practica #8: API Rest PZEM-014/016 AC Energy Meter
*/
//Librerias necesarias
#include <WiFi.h>
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
/*
Autor: Vidal Bazurto (avbazurt@espol.edu.ec)
GitHub: https://github.com/avbazurt/CURSO-PLC-LAB
Practica #7: WebServer PZEM-014/016 AC Energy Meter
*/
//Librerias necesarias
#include <WiFi.h>
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
/*
Autor: Vidal Bazurto (avbazurt@espol.edu.ec)
GitHub: https://github.com/avbazurt/CURSO-PLC-LAB
Practica #6: Two PZEM-014/016 AC Energy Meter
*/
//Librerias necesarias
#include <ModbusMaster.h>
/*
/*
Autor: Vidal Bazurto (avbazurt@espol.edu.ec)
GitHub: https://github.com/avbazurt/CURSO-PLC-LAB
Practica #6: Change Address PZEM-014/016 AC Energy Meter
*/
//Librerias necesarias
#include <ModbusMaster.h>
/*
/*
Autor: Vidal Bazurto (avbazurt@espol.edu.ec)
GitHub: https://github.com/avbazurt/CURSO-PLC-LAB
Practica #5: PZEM-014/016 AC Energy Meter
*/
//Librerias necesarias
#include <ModbusMaster.h>
/*
/*
Autor: Vidal Bazurto (avbazurt@espol.edu.ec)
GitHub: https://github.com/avbazurt/CURSO-PLC-LAB
Practica #4: Envio de multiple datos entre un master a un esclavo
de master (Dos ESP32)
Slave
*/
//Pines Dedicados modulo PLC-LAB
/*
Autor: Vidal Bazurto (avbazurt@espol.edu.ec)
GitHub: https://github.com/avbazurt/CURSO-PLC-LAB
Practica #4: Envio de multiple datos entre un master a un esclavo
de master (Dos ESP32)
Master
*/
//Pines Dedicados modulo PLC-LAB
/*
Autor: Vidal Bazurto (avbazurt@espol.edu.ec)
GitHub: https://github.com/avbazurt/CURSO-PLC-LAB
Practica #3: Envio de dato entre un master a un esclavo
de master (Dos ESP32)
Slave
*/
//Pines Dedicados modulo PLC-LAB
#define RS485_SERIAL Serial2
/*
Autor: Vidal Bazurto (avbazurt@espol.edu.ec)
GitHub: https://github.com/avbazurt/CURSO-PLC-LAB
Practica #3: Envio de dato entre un master a un esclavo
de master (Dos ESP32)
Master
*/
//Pines Dedicados modulo PLC-LAB
#define RS485_SERIAL Serial2