mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-23 06:15:16 +02:00
Initial version of transactions. Shell command implemented as an example. Still needs channel cleanup on app side, handling a device dying in the middle of a transaction, and getting device list back to normal.
This commit is contained in:
@@ -29,6 +29,14 @@ var wireutil = {
|
||||
, envelope: function(message) {
|
||||
return new wire.Envelope(message.$code, message.encode()).encodeNB()
|
||||
}
|
||||
, transaction: function(channel, message) {
|
||||
return new wire.Envelope(
|
||||
message.$code
|
||||
, message.encode()
|
||||
, channel
|
||||
)
|
||||
.encodeNB()
|
||||
}
|
||||
, makeDeviceLogMessage: function(serial, entry) {
|
||||
return wireutil.envelope(new wire.DeviceLogMessage(
|
||||
serial
|
||||
|
||||
Reference in New Issue
Block a user