I have installed the DM server and it is up and running.Also added couple of device details via koneki simulator.
Now i want to use one of the j2se client to connect and pull data from DM server.
I am struck on this part.Any code sample ?
Actually, there is an OMA-DM client underneath the Koneki simulator that you might want to reuse!
You can grab the source code from the GitHub mirrors of the OMA-DM simulator: here and here
org.eclipse.koneki.simulators.omadm
is used to run a new OMA-DM session. Look for the run()
method in the class org.eclipse.koneki.simulators.omadm.basic.DMBasicSimulation
org.eclipse.koneki.protocols.omadm
defines the object model used during a simulation. org.eclipse.koneki.protocols.omadm.client
(the most interesting for you) manages all the messages that are exchanged between a client (eg the simulator) and a server. Look for the org.eclipse.koneki.protocols.omadm.client.basic.DMBasicSession
class. You should stop by the Koneki forum if you have any further questions (and I am sure you will!)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.