mTANGO Rest API
|
|
---|---|
Hi Vatsal, I will have a look |
|
|
---|---|
Hi Igor, Any updates on this? Vatsal |
|
|
---|---|
Hi Vatsal, Looks like there is a bug mtango.war. If you look through server's log you will see the following:
Notice `Method is not allowed: put` even though mtango-js user has write access to the device. We never experienced this due to read only applications. I have fixed this - you can use new war file: https://bitbucket.org/hzgwpn/mtangorest.server/downloads/mtangorest.server-rc1-0.4.zip Concerning DevDouble I confirm that it works in FF and not in Chrome. As we are using FF by default this is not going to be fixed soon.j Regards, |
|
|
---|---|
Hi Igor, Thanks for resolving the issue. We have tested it and its working. Will get in touch with you in case of any additional issues. Also let us know when jsTangORB compatible with rc5 (the next major update for Tango REST API) is released. We would like to play with it. Regards, Vatsal Trivedi |
|
|
---|---|
Hi Igor, In the updated war file there is an issue while reading "State" of a TANGO Device. Regards, Apurva |
|
|
---|---|
Hi Apurva, Works fine for me:
Gives this console output:
|
|
|
---|---|
Hi Igor, Thanks for the solution. It is just that we were able to read "State" of the tango device in the form of string using previous mtango.war file. With this mtango.war file, we get "State" as an integer value. Regards, Apurva |
|
|
---|---|
OK, I see. Will have a look |
|
|
---|---|
Hi Igor, I want to read device properties using the REST API. But jsTangORB compatible with version rc1-0.4 of the TANGO REST API does not support reading of device properties. So I tried a workaround. TANGO Database Server exposes a command DbGetDeviceProperty to read device properties. So I created a proxy to the TANGO Database Device (sys/database/2) and invoked DbGetDeviceProperty command with DevVarStringArray as input parameter containing TANGO Device Name and name of property to be read. I have added a TestProperty in TANGO Test (sys/tg_test/1) device. Below is the code snippet:
But I get failed response. Below is the output on the console:
I think the issue is related to the war file. Please have a look at it. Regards, Lochan |
|
|
---|---|
Hi Lochan, I have uploaded new versions of jsTangORB and mtango.war: jsTangORB-rc1-1.0.3.zip mtangoserver-rc1-0.5.zip Using this ones I can read device properties:
@Vatsal, this also fixes a few tests of yours:
|