\n
Microsoft Invisible Computing

ISensor Interface

An interface for collecting sensor readings.

XML namespace sensor=http://tempuri.org/Sensor

C type for interface pointer:

Extends IProgram

Implemented by SensorDemo

Methods: Read ReadAndDeliver DoSomeWork DoNoWork

Structs: BitmapImage

Methods

Read

Read a value from a sensing element synchronously.

ReadAndDeliver

Read a value from a sensing element and deliver to a web service.

DoSomeWork

Test method that spends some time calculating something.

DoNoWork

Test method that spends no time calculating anything.

Structs

BitmapImage

Experimental: used to deliver camera images from sensor.

ISensor.Read Method

Read a value from a sensing element synchronously.

SCODE Read( 
    /*in,this*/ PISENSOR iThis,
    /*in*/ UINT32 Element,
    /*out,size-is*/ _TCHAR * Data,
    /*in,size-of*/ UINT DataSize)
Element

Which sensing element to read from.

Data

The resulting value.

DataSize

Size of data buffer.

C++

SCODE ISensor::Read( 
    /*in*/ UINT32 Element,
    /*out,size-is*/ _TCHAR * Data,
    /*in,size-of*/ UINT DataSize)

ISensor.ReadAndDeliver Method

Read a value from a sensing element and deliver to a web service.

SCODE ReadAndDeliver( 
    /*in,this*/ PISENSOR iThis,
    /*in*/ UINT32 Element,
    /*in*/ const _TCHAR * Destination,
    /*in*/ const _TCHAR * DestinationReservation)
Element

Which sensing element to read from.

Destination

The URL of the web service to send to.

DestinationReservation

The URL of the web service to send to.

C++

SCODE ISensor::ReadAndDeliver( 
    /*in*/ UINT32 Element,
    /*in*/ const _TCHAR * Destination,
    /*in*/ const _TCHAR * DestinationReservation)

ISensor.DoSomeWork Method

Test method that spends some time calculating something.

SCODE DoSomeWork( 
    /*in,this*/ PISENSOR iThis,
    /*in*/ const _TCHAR * arg)
arg

An argument.

C++

SCODE ISensor::DoSomeWork( 
    /*in*/ const _TCHAR * arg)

ISensor.DoNoWork Method

Test method that spends no time calculating anything.

SCODE DoNoWork( 
    /*in,this*/ PISENSOR iThis)

C++

SCODE ISensor::DoNoWork( void )

BitmapImage Structure

Experimental: used to deliver camera images from sensor.

Fields
Type
C/C++ type: _TCHAR *
Serializer Type: string

"bmp" or similar.

Content
C/C++ type: PIBUFFER
Serializer Type: PIBUFFER

The data represented as a !BIN section in XML and IBuffer object in C.

©2006 Microsoft Corporation. All rights reserved. Terms of Use Privacy Statement Accessibility End User License Agreement