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:
parent
f432dc9fb9
commit
2086d7d439
9 changed files with 147 additions and 39 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue