Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Link copied. Please paste this link to share this article on your social media post.
2017-11-2011:56 PM
CSP Issues
Hi All,
I have the latest 2.3CTP release of SmartConnector which includes the CSP integration.
When I initialize the CSP from the MongooseObjectFactory, my container (var client) is always null... is there anything that I am missing here? I have checked over the docs, but can't seem to find any code examples.
var client = MongooseObjectFactory.Current.GetInstance<IManagedCspClient>();
var server = new CspEndpoint
{
Address = endpoint.Endpoint,
Password = endpoint.Password,
UserName = endpoint.Username
};
var response = client.RetrieveAlarmEvents(server, new CspQuery()
Link copied. Please paste this link to share this article on your social media post.
2017-11-2106:27 AM
Mark,
Yeah, the docs don't include anything on the CspClient at this point.
What you have should work. Remember, when running in a Unit Test environment you need to call InitIoC on your back reference to the service EXE. You can use the new class in Mongoose.Test to help. See below.
...
using SmartConnectorService = Mongoose.Service.Mongoose;
namespace MyProcessorExtention.Test
{
public class MyTestFixtureFixture : SmartConnectorTestFixtureBase