Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Can't read local device
-
Hello,
I am trying to generate a local device and read it in YABE.
The java application is a simple example of a NetworkBuilder and a local device.
YABE is able to discover the device but when trying to read it i get the following error message:
ERROR_CODE_REJECT_UNRECOGNIZED_SERVICEand the YABE log prints:
ERVICE_CONFIRMED_READ_PROPERTY ErrorHere is my code:
network = new IpNetworkBuilder().withPort(0xBAC5).withBroadcast("255.255.255.255",255).withReuseAddress(true).build(); transport = new DefaultTransport(network); transport.setTimeout(500000); transport.setSegTimeout(15000); LocalDevice local = new LocalDevice(1, transport); try { local.initialize(); }catch (Exception e) { }
Any help would be greatly appreciated.
-
Hi STAstefan,
Do you know if YABE is only trying to read from the device object? Do you have a wireshark of what YABE is sending?
-
Hi,
The problem seemed to be the fact that I tried (for test purposes) to run both YABE and my application on the same machine. Running it on two different machines in the network does the trick. -
Ah, yes, you wouldn't be able to bind the same port on the same machine in both applications. Thanks for sharing the resolution!