12/07/2017 at 5:42 pm #46860
I downloaded the SoftwareTools4Makers/OPC library from GitHub since I noticed it was newer… I was using the library directly downloadable from the library manager inside the Arduino IDE (they are different)… and doing nothing else, my project went from working well to NOT WORKING so well … in-fact, I found I could read opc items as much as I needed, but I couldn’t write to them. FYI: I’m using the OPCSerial class in my Sketch … version 1.9 of the Server on Windows 10. Doing a little investigation comparing the differences between the two library versions (and seeing that only the base class was changed, the OPCSerial class was identical … and yes I saw the other OPC* class changes but since I was using OPCSerial, … only the base class changes mattered), I couldn’t see how adding the new getOPCItem function or moving the OPCItemType structure could possibly make difference, I moved on. What I found is that if I comment out the opc_undefined from the opcAccessRights enum (the only other change I could see that might cause a problem, since now each of the items following the opc_undefined entry would now have a new value (+1 added to each one), I was back up and running without any problem. I’m not sure if this is a bug or not … maybe a similar opc_undefined needs to be added in the server code?
After I got things working again, I decided to try to add an OPCWireless class so I can use my Adafruit CC3000 Wireless shield … just uses the same communication protocol as the OPCEthernet class, so the server doesn’t care. So far, it works pretty well.
Thanks!12/08/2017 at 5:05 pm #47570
too much thanks for the investigation and your time!!! Yes, I made some changes to the Github library to support some kind of data persistance. I will check all the examples to see if some troubles happended
all the best
You must be logged in to reply to this topic.