Developers guide

Chapter 22: Wireless Wide-Area Networking
WWAN API Elements
214 Psion Teklogix Mobile Devices SDK Developers Guide
Fore more refined control over when the RSSI signal strength is measured, use the SetSignalSug-
gestion. This causes the WWAN driver to invoke OnSignalStrength whenever the signal strength
changes by more than the RssiThreshold value. The RssiInterval (in seconds) value determines
how often the WWAN driver queries the modem for the signal strength. This is shown in the
following:
22.9 WWAN API Elements
C++: WWAN on all Psion Teklogix Windows CE computers is controlled using the
PsionTeklogix::WWAN namespace.
Java: Not available.
.NET: WWAN on all Psion Teklogix Windows CE computers is controlled using the
PsionTeklogix.WWAN namespace.
~MyRssiListener()
{
}
virtual void OnSignalState(const WWAN_SIGNAL_STATE &signalState)
{
//
// Process RSSI here
//
}
};
//
// Later in the code.
//
MyRssiListener *rssi = new MyRssiListener();
WirelessWAN::SetIndicationsListener(rssi);
WirelessWAN::SetIndicationsState(true);
Example 22.13 Using SetSignalSuggestion in C++
WWanRequestParameters params;
params.hWaitForAsyncCompletion = 0;
WWAN_SIGNAL_STATE signalState;
signalState.RssiInterval = 10; // 10 second interval
signalState.RssiThreshold = 2; // 2 dbm change
if (WirelessWAN::SetSignalSuggestion(params, signalState) == WwanRequestSuccess)
{
if( params.resultCode == WwanResultSuccess )
{
// Settings successfully changed. You'll now start getting
// signal strength indications via OnSignalStrength
}
}
Example 22.12 Getting The signal Strength in C++ (Continued)