BlakeL
I basically created the first project in the tutorial, but with a couple of integer variables added. It created the files without a problem but I received the following error when OpenPLC attempted to compile the main program. Does this look like something caused by more or a bug in OpenPLC?

Compiling main program...
dnp3.cpp: In function ‘void dnp3StartServer(int)’:
dnp3.cpp:401:140: error: no matching function for call to ‘asiodnp3:😃NP3Manager::AddTCPServer(const char [12], const uint32_t&, asiopal::ChannelRetry, const char [8], int&, std::shared_ptr<asiodnp3::IChannelListener>😉’
auto channel = manager.AddTCPServer("DNP3_Server", FILTERS, ChannelRetry:😃efault(), "0.0.0.0", port, PrintingChannelListener::Create());
^
In file included from dnp3.cpp:5:0:
/usr/local/include/asiodnp3/DNP3Manager.h:113:28: note: candidate: std::shared_ptr<asiodnp3::IChannel> asiodnp3:😃NP3Manager::AddTCPServer(const string&, uint32_t, opendnp3::ServerAcceptMode, const string&, uint16_t, std::shared_ptr<asiodnp3::IChannelListener>😉
std::shared_ptr<IChannel> AddTCPServer(
^
/usr/local/include/asiodnp3/DNP3Manager.h:113:28: note: no known conversion for argument 3 from ‘asiopal::ChannelRetry’ to ‘opendnp3::ServerAcceptMode’
Error compiling C files
Compilation finished with errors!
Reply 0 0
thiagoralves
What device are you running OpenPLC on? Windows PC? Linux PC? Raspberry Pi? UniPi?
Reply 0 0
BlakeL
Linux PC
Reply 0 0
thiagoralves
What flavor or Linux are you using? It looks like something went wrong during the installation of the OpenDNP3 library. I recommend reinstalling OpenPLC and posting here the install logs to make sure that no error occurred during installation
Reply 0 0
Reply