SmartConnector Forum
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Link copied. Please paste this link to share this article on your social media post.
On the portal, I created a Processor Value.
I am using this method to access this value, as suggested in the developer documentation.
var pv = this.FindOrCreateProcessorValue("LastPollDate");
I also tried this:
var pv = this.FindOrCreateProcessorValue("LastPollDate", "", "", DataPointValueType.DateTime);
When I run the code locally in debug mode, I am seeing "{"Object reference not set to an instance of an object."}" error.
Does it not work in debug mode or do I have to associate ProcessorValues to a processor to access them from code?
Link copied. Please paste this link to share this article on your social media post.
You should certainly be able fully test your Processor from a Unit Test fixture in debug mode. This would include accessing the ProcessorValues data store. The exception you are seeing is most likely due to the Unit Test fixture not being properly configured.
The steps you need to perform/verify in order to ensure success in doing this are covered in the "Testing an Extension" section of the SmartConnector Developers Guide.
Were all of those steps properly completed?
Link copied. Please paste this link to share this article on your social media post.
I am using Resharper for testing.
Is it because the processor is unable to connect to the database?
Link copied. Please paste this link to share this article on your social media post.
It doesn't matter if you're using ReSharper or not, the steps are the same.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.