mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
Save devices to database.
This commit is contained in:
parent
881996557a
commit
48b4c2fd0e
7 changed files with 165 additions and 40 deletions
|
@ -76,6 +76,19 @@ module.exports = function(wire) {
|
|||
var message = new wire.DevicePokeMessage(serial, channel)
|
||||
return wireutil.envelope(wire.MessageType.DEVICE_POKE, message)
|
||||
}
|
||||
, makeDeviceIdentityMessage: function(serial, identity) {
|
||||
var message = new wire.DeviceIdentityMessage(
|
||||
serial
|
||||
, identity.platform
|
||||
, identity.manufacturer
|
||||
, identity.model
|
||||
, identity.version
|
||||
, identity.abi
|
||||
, identity.sdk
|
||||
)
|
||||
|
||||
return wireutil.envelope(wire.MessageType.DEVICE_IDENTITY, message)
|
||||
}
|
||||
, makeDevicePropertiesMessage: function(serial, properties) {
|
||||
var message = new wire.DevicePropertiesMessage(
|
||||
serial
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue