The NodeJS SDK for the Schema Connector just helps you with the format of the requests.
You can create your own Schema Connector and OAuth servers, just make sure you send the appropriate responses to the requests from SmartThings.
I suggest you:
- Set up the samples of NodeJS (Schema Connector and OAuth Server) and see the flow/payload of each interaction in the logs.
- Simple ST Schema tutorial
-
MyCloudConnector (In
server.js
, it compares which interaction type is received in the request instead of using the SDK’s HTTP handler.
- Check the SDK’s source code. It’ll help you understand the requests made, eg. to get the Reciprocal Access Token for callbacks.
The Interaction result will help you know if there is an issue in the response from your Schema Connector thanks to the error message.
Let me know if you have any questions.