1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-03 17:59:28 +02:00

Better device present/absent handling by separating it from the status event.

This commit is contained in:
Simo Kinnunen 2014-02-03 19:42:20 +09:00
parent f432dc9fb9
commit 2086d7d439
9 changed files with 147 additions and 39 deletions

View file

@ -14,7 +14,6 @@ var wireutil = {
, emulator: 'ONLINE'
, unauthorized: 'UNAUTHORIZED'
, offline: 'OFFLINE'
, absent: 'ABSENT'
}[type]]
}
, envelope: function(message) {
@ -106,13 +105,6 @@ var wireutil = {
})
))
}
, makeDeviceStatusMessage: function(serial, type, provider) {
return wireutil.envelope(new wire.DeviceStatusMessage(
serial
, wireutil.toDeviceStatus(type)
, provider
))
}
, makeProbeMessage: function() {
return wireutil.envelope(new wire.ProbeMessage())
}