ASK: Why MN resources structure not found under IN CSE #107
-
Hi, thank you for this awesome project! I create IN in the same machine with MN, but different folder to seperate the database. After i create every resource under IN and MN, i see that IN cannot discover MN resources as pictures below WEBUI from IN WEBUI from MN I try to get CDoor latest instance, but request it from IN and the result as below
debug in ACME-oneM2M-CSE IN folder
But i see that MN CSE always successfully request keep alive periodically. I wonder what i do wrong? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, Well, I can see that you are sending the request to the IN (8080), that should be 8081. And secondly, the Origin (From parameter) should be the id of the IN (I guess "/id-in", including the slash) Cheers |
Beta Was this translation helpful? Give feedback.
-
First of all thank you for your kind words. Looking at your request I see that you want to do a transit request. You send your request to the IN-CSE (that is where also the MN-CSE has registered). You now expect that the IN-CSE forwards your request to the MN-CSE. This should be the case, however it seems that your target URL is missing the CSE-ID of the MN-CSE, ie. "/id-mn". Without that prefix the IN-CSE only targets resources that it hosts, and doesn't forward Please try to modify your target URI to SP-Relative form: /id-mn/cse-mn/CDoor/control-lock. Don't forget: the http URL then will look like this: https:/<address>/~/id-mn/cse-mn/CDoor/control-lock |
Beta Was this translation helpful? Give feedback.
First of all thank you for your kind words.
It looks like you did the main setup for the remote registration correctly.
Looking at your request I see that you want to do a transit request. You send your request to the IN-CSE (that is where also the MN-CSE has registered). You now expect that the IN-CSE forwards your request to the MN-CSE. This should be the case, however it seems that your target URL is missing the CSE-ID of the MN-CSE, ie. "/id-mn". Without that prefix the IN-CSE only targets resources that it hosts, and doesn't forward
Please try to modify your target URI to SP-Relative form: /id-mn/cse-mn/CDoor/control-lock. Don't forget: the http URL then will look like this: https:/<…