Thanks Ton,
From reviewing the documentation, I also found out I need to down load the
5.3 sdk and add it to codewarrior as I believe the version of codewarrior I
currently have on my system (9.3) does not have it, or at least I don't
remember seeing it ..
Thanks again, this points me in the right direction.
Luis,
From: Ton van Overbeek <[EMAIL PROTECTED]>
Reply-To: "Palm Developer Forum" <[email protected]>
To: "Palm Developer Forum" <[email protected]>
Subject: Re: getting the MAC address
Date: Thu, 8 Mar 2007 20:55:56 +0100
On 2007-03-08, luis maldonado <[EMAIL PROTECTED]> wrote:
> I just
>
> 1) downloaded the netservices documentation from the pdn
> 2) reviewed the Palm overview
> 3) reviewed the data communications sections
> paying particular attention to the master library
> the http library and the html libraries
> 4) I also looked at the telephone sections with GSM and related material
> 5) I also read all of the 16 lines describing the net services API. and
the
> sections above it
> which mentions the use of the palmwificommon.h file
>
> Unfortunately I did not see anything about how to get the MAC address
using
> any of the
> libraries mentioned above.
>
> Sorry if I'm being so obtuse, but if any body can point me in the right
> direction where I can find a bit of sample code I'd really be very
> appreciative....
>
> Thanks again
>
> Luis
>
>
From the PalmNetServices.h header file in the 5.3 SDK:
------------------------------------------------------------------------------
/**
* Gets the HW address (i.e. MAC address) for the interface
*
* @param libRefNum: IN: Reference number of the library.
* @param hwAddrP: OUT: Pointer to store MAC address in.
* Must be 6 bytes in length.
*
* @retval Err Error code.
*/
Err NetServicesGetHWAddr( UInt16 libRefNum, UInt8 *hwAddrP )
SYS_TRAP(NetServicesLibTrapGetHWAddr);
------------------------------------------------------------------------------
From the same header file the library info:
------------------------------------------------------------------------------
/********************************************************************
* Library type and creator
********************************************************************/
#define ShlLibName "NetServLib" /**< PalmNetServices library name. */
#define ShlCreatorID 'NETs' /**< PalmNetServices creator ID. */
#define ShlLibType 'libr' /**< PalmNetServices library type. */
------------------------------------------------------------------------------
That should be enough information.
Ton van Overbeek
--
For information on using the ACCESS Developer Forums, or to unsubscribe,
please see http://www.access-company.com/developers/forums/
_________________________________________________________________
Mortgage rates as low as 4.625% - Refinance $150,000 loan for $579 a month.
Intro*Terms
https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h27f6&disc=y&vers=743&s=4056&p=5117
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/