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.
Hi Expert
Our customer developed an APP to connect SBO via SmartConnector, they can read value from SBO correctly, but whatever the value they write, the value in SBO will change to “0”.
We do a test in office, use SwageUI can write the value correctly, use Postman get the same problem as their APP, we got a capture of communication when write value to SBO and compare the capture files but did not found any difference except the value of Jason.
Kindly find the attached capture files,source code for change value, and comment us what cause this issue and how to make write operation works correctly.
Thanks and Best Regards
Yangbo
Link copied. Please paste this link to share this article on your social media post.
Hi Yangbo,
In your Postman packet capture, I am seeing no requests to the EWS Restful gateway at all.
I see a bunch of POSTS to /json (which looks to be a different web service or like maybe you have a WebStation opened).
However, from the pdfs you attached it looks as though they are setting the value of the PUT parameter to
"NewValue" = 34
While the swagger exaple shows the PUT parameter to be:
34
Can you try in POSTMAN to set the PUT parameter to simply the value, and not "NewValue" = value
Best Regards,
-Jeff
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Hi Jeff
Thanks for comments.
The developer modify the source code as your comments but the issue still existing.
Kindly take a look at the screen shot of the capture comparison, the content type may be not correct, Do you agree?
Thanks and Best Regards
Yangbo
Link copied. Please paste this link to share this article on your social media post.
Hi Yangbo,
In the 'Content' on their PUT request, they just need to send the value with no parameter name, they shouldn't form-encode it (it might work in theory, but it clearly is not). Also correct, they should use application/json.
Regards,
-Jeff
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.