mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Save devices to database.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user