1
0
Fork 0
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:
Simo Kinnunen 2014-01-28 15:47:29 +09:00
parent 881996557a
commit 48b4c2fd0e
7 changed files with 165 additions and 40 deletions

View file

@ -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