fixing simulator

This commit is contained in:
Peli de Halleux 2016-11-30 04:27:08 -08:00
parent d873cbb6c3
commit 097564748c

View File

@ -134,7 +134,7 @@ namespace pxsim.devices {
export function onSignalStrengthChanged(action: number) {
// TODO
}
export function signalStrength() : number {
export function signalStrength(): number {
// TODO
return 0;
}
@ -165,18 +165,19 @@ namespace pxsim.bluetooth {
export function startUartService(): void {
// TODO
}
export function uartWrite(s : string): void {
// TODO
export function uartWrite(s: string): void {
serial.writeString(s)
}
export function uartReadUntil(del: string): string {
// TODO
return ""
return serial.readUntil(del);
}
export function onBluetoothConnected(a : RefAction) {
export function onBluetoothConnected(a: RefAction) {
// TODO
}
export function onBluetoothDisconnected(a : RefAction) {
export function onBluetoothDisconnected(a: RefAction) {
// TODO
}
export function advertiseUrl(url: string, power: number) { }
export function stopAdvertising() { }
}