Ecommerce Library for NetCard with DS Support

$Revision: 1.1 $
$Date: 2007/04/26 18:36:04 $

Purpose

The Ecommerce library provides the API needed to contact the infrastructure and purchase and download new games or other content for the NetCard platform with DS. This library will be called by the viewer ("system app") in order to provide the user with the online shopping features. In the full production release, the Ecommerce API will support either DS WiFi or NetCard USB as the underlying transport mechanism. Please note that in NC SDK release 1.15, the USB transport is not provided, only the WiFi transport. The invoking application must specify the type of networking that should be used as a parameter on the EC_Init call.

Sample Code

The header file defining the Ecommerce API can be found here:
	$NITRODWC_ROOT/build/libraries/ec/include/ec.h
For the NetCard environment, the BROADWAY_REV preprocessor variable will not be defined, but _NITRO will be defined.

There is a sample program that demonstrates the use of the Ecommerce API here:

	$NITRODWC_ROOT/build/demos/ectest/src/ectest.c
Note that the URLs for the various services required will need to be modified for the iQue environment. Please look for the following preprocessor defines: and modify as appropriate.

Configuring the WiFi Library

When using WiFi Networking, it is necessary to configure the WiFi library in order to connect to the appropriate Wireless Access Point. This should be done before building the Ecommerce library demo program. One method is to modify the following file:
	$NITROWIFI_ROOT/build/demos/SiteDefs/sitedefs.c
The parameters that will need to be changed are: Once the changes have been made, run make in that directory in order to create the new sitedefs library. Refer to the documentation for the NitroWiFi SDK for more details.