RE: pm-8200 devel

Jordan Foley <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <[email protected]>
I have updated my packet for the messageentry, i forgot to add the callback # to it.

PACKET messageentry:
    1 UINT slot
    1 UINT read
    1 UINT counter
    1 UINT dunno1
    1 UINT dunno2
    1 UINT dunno3
    1 UINT cons1
    1 UINT cons2
    1 UINT cons3
    1 UINT dunno4
    1 UINT cons4
    1 UINT cons5
    1 UINT dunno5
    1 UINT message_len
    255 STRING message "Text of the notification"
    1 UINT dunno11
    1 UINT year
    1 UINT month
    1 UINT day
    1 UINT hour
    1 UINT minute
    1 UINT second
    1 UINT callback_len
    33 STRING callback
    1 UINT dunno12
    1 UINT phonenum_len
    33 STRING phonenum
    5 UNKNOWN pad2
    1 UINT folder
    1 UINT dunno13
    1 UINT dunno14
    1 UINT dunno15
    1 UINT dunno16
    1 UINT dunno17

I have been trying to implement passing these variables to the sms tab but this is not working, it keeps throwing errors, complaing about how sf.callback is not defined.  Does anyone have any example code that passes a variable straight through to the sms tab so that i can see something simple in action?

    def getsms(self, result):
        result['sms']=self._readsms()
        return result

    def _readsms(self):
	self.log("Getting sms entries")
        req=self.protocolclass.messagerequest()
        for slot in range(200):
            req.slot=slot
            res=self.sendpbcommand(req, self.protocolclass.messageresponse)
	    entry.callback=sf.callback
        return res



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.