Links2004 / arduinoWebSockets

arduinoWebSockets
GNU Lesser General Public License v2.1
1.9k stars 555 forks source link

problem in mocpp_initialize() function. #850

Open Vaibhav152000 opened 1 year ago

Vaibhav152000 commented 1 year ago

In file included from src\main.cpp:9: .pio\libdeps\esp12e\MicroOcpp\src/MicroOcpp.h:91:6: note: candidate: 'void mocpp_initialize(MicroOcpp::Connection&, const char*, std::shared_ptr, bool)' 91 | void mocpp_initialize( | ^~~~ .pio\libdeps\esp12e\MicroOcpp\src/MicroOcpp.h:91:6: note: candidate expects 4 arguments, 5 provided *** [.pio\build\esp12e\src\main.cpp.o] Error 1

Vaibhav152000 commented 1 year ago

define OCPP_HOST "192.168.XXXXX"

define OCPP_PORT 8XXX

define OCPP_URL "ws://192.168.XXXXXXXXXXXXXX/(chargeBoxId)"

my function : mocpp_initialize(OCPP_HOST, OCPP_PORT, OCPP_URL,"My Charging Station", "My company name");