Skip to Content
Author's profile photo Prasanth Rao

Managing Device Subscription for SUP-DOE using Generated Code

The username and password shall be the SAP Machine login details. A little tweak is required in the OnlineLogin method in demoDatabase where the loop count of the for loop should be reduced from 6000 to 10.

Ignore the exceptions thrown from the LoginToSync method. I am still working on finding the reasons for it. You should be able to see the device registered in SCC on successful execution. To unsubscribe, just call demoDatabase.Unsubscribe(). You can check the subscription status using demoDatabase.isSubscribed() method anytime. The snippet works well with Windows Mobile and Win32 platforms. Presently I have only tried with C#. In case there is a difference on the other platforms or I find a better implementation, I will be posting them.

Assigned tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member
      Hi Prasanth,

      I am not very sure but the don't you think username and password should be SUP server login credentials instead of SAP ?

      Author's profile photo Prasanth Ganesh Rao
      Prasanth Ganesh Rao
      Blog Post Author
      Hi Victor,

      In case of DOE-SUP, it is the SAP Login credentials that would be used. All my winmobile apps work that way.