mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added MEI state exchange over CIRA-LMS.
This commit is contained in:
parent
0e23eaa881
commit
8b61f1d64c
11 changed files with 158 additions and 95 deletions
|
@ -173,11 +173,16 @@ function CreateAPFClient(parent, args) {
|
|||
});
|
||||
|
||||
obj.state = CIRASTATE.INITIAL;
|
||||
if ((typeof obj.args.conntype == 'number') && (obj.args.conntype != 0)) { SendJsonControl(obj.forwardClient.ws, { action: 'connType', value: obj.args.conntype } ); }
|
||||
if ((typeof obj.args.conntype == 'number') && (obj.args.conntype != 0)) {
|
||||
SendJsonControl(obj.forwardClient.ws, { action: 'connType', value: obj.args.conntype });
|
||||
if (obj.args.meiState != null) { SendJsonControl(obj.forwardClient.ws, { action: 'meiState', value: obj.args.meiState }); }
|
||||
}
|
||||
SendProtocolVersion(obj.forwardClient.ws, obj.args.clientuuid);
|
||||
SendServiceRequest(obj.forwardClient.ws, 'auth@amt.intel.com');
|
||||
}
|
||||
|
||||
obj.updateMeiState = function (state) { SendJsonControl(obj.forwardClient.ws, { action: 'meiState', value: state }); }
|
||||
|
||||
function SendJsonControl(socket, o) {
|
||||
var data = JSON.stringify(o)
|
||||
socket.write(String.fromCharCode(APFProtocol.JSON_CONTROL) + IntToStr(data.length) + data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue