Skip to content

Commit

Permalink
deploy: 2a4a75a
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsw committed Apr 1, 2024
1 parent 79a7cff commit 2038c78
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 87 deletions.
50 changes: 25 additions & 25 deletions Device.html
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ <h4 class="name" id="getRaw"><span class="type-signature"></span>getRaw<span cla

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line403">line 403</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line406">line 406</a>
</li></ul></dd>


Expand Down Expand Up @@ -1427,7 +1427,7 @@ <h4 class="name" id="getRawArray"><span class="type-signature"></span>getRawArra

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line422">line 422</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line425">line 425</a>
</li></ul></dd>


Expand Down Expand Up @@ -1612,7 +1612,7 @@ <h4 class="name" id="getScale"><span class="type-signature"></span>getScale<span

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line440">line 440</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line443">line 443</a>
</li></ul></dd>


Expand Down Expand Up @@ -1782,7 +1782,7 @@ <h4 class="name" id="getScaleArray"><span class="type-signature"></span>getScale

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line459">line 459</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line462">line 462</a>
</li></ul></dd>


Expand Down Expand Up @@ -1976,7 +1976,7 @@ <h4 class="name" id="getValue"><span class="type-signature"></span>getValue<span

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line366">line 366</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line369">line 369</a>
</li></ul></dd>


Expand Down Expand Up @@ -2146,7 +2146,7 @@ <h4 class="name" id="getValueArray"><span class="type-signature"></span>getValue

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line385">line 385</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line388">line 388</a>
</li></ul></dd>


Expand Down Expand Up @@ -2341,7 +2341,7 @@ <h4 class="name" id="init"><span class="type-signature"></span>init<span class="

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line658">line 658</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line661">line 661</a>
</li></ul></dd>


Expand Down Expand Up @@ -2433,7 +2433,7 @@ <h4 class="name" id="mapRemoteNode"><span class="type-signature"></span>mapRemot

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line270">line 270</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line273">line 273</a>
</li></ul></dd>


Expand Down Expand Up @@ -3069,7 +3069,7 @@ <h4 class="name" id="setRaw"><span class="type-signature"></span>setRaw<span cla

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line514">line 514</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line517">line 517</a>
</li></ul></dd>


Expand Down Expand Up @@ -3231,7 +3231,7 @@ <h4 class="name" id="setRawArray"><span class="type-signature"></span>setRawArra

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line533">line 533</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line536">line 536</a>
</li></ul></dd>


Expand Down Expand Up @@ -3417,7 +3417,7 @@ <h4 class="name" id="setScale"><span class="type-signature"></span>setScale<span

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line552">line 552</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line555">line 555</a>
</li></ul></dd>


Expand Down Expand Up @@ -3582,7 +3582,7 @@ <h4 class="name" id="setScaleArray"><span class="type-signature"></span>setScale

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line572">line 572</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line575">line 575</a>
</li></ul></dd>


Expand Down Expand Up @@ -3773,7 +3773,7 @@ <h4 class="name" id="setTransmitFunction"><span class="type-signature"></span>se

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line819">line 819</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line822">line 822</a>
</li></ul></dd>


Expand Down Expand Up @@ -3910,7 +3910,7 @@ <h4 class="name" id="setValue"><span class="type-signature"></span>setValue<span

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line477">line 477</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line480">line 480</a>
</li></ul></dd>


Expand Down Expand Up @@ -4081,7 +4081,7 @@ <h4 class="name" id="setValueArray"><span class="type-signature"></span>setValue

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line496">line 496</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line499">line 499</a>
</li></ul></dd>


Expand Down Expand Up @@ -4462,7 +4462,7 @@ <h4 class="name" id="event:emergency">emergency</h4>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line661">line 661</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line664">line 664</a>
</li></ul></dd>


Expand Down Expand Up @@ -4551,7 +4551,7 @@ <h4 class="name" id="event:lssChangeDeviceId">lssChangeDeviceId</h4>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line787">line 787</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line790">line 790</a>
</li></ul></dd>


Expand Down Expand Up @@ -4640,7 +4640,7 @@ <h4 class="name" id="event:lssChangeMode">lssChangeMode</h4>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line774">line 774</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line777">line 777</a>
</li></ul></dd>


Expand Down Expand Up @@ -4729,7 +4729,7 @@ <h4 class="name" id="event:nmtChangeState">nmtChangeState</h4>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line703">line 703</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line706">line 706</a>
</li></ul></dd>


Expand Down Expand Up @@ -4818,7 +4818,7 @@ <h4 class="name" id="event:nmtChangeState">nmtChangeState</h4>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line721">line 721</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line724">line 724</a>
</li></ul></dd>


Expand Down Expand Up @@ -4907,7 +4907,7 @@ <h4 class="name" id="event:nmtResetCommunication">nmtResetCommunication</h4>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line687">line 687</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line690">line 690</a>
</li></ul></dd>


Expand Down Expand Up @@ -4996,7 +4996,7 @@ <h4 class="name" id="event:nmtResetNode">nmtResetNode</h4>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line675">line 675</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line678">line 678</a>
</li></ul></dd>


Expand Down Expand Up @@ -5085,7 +5085,7 @@ <h4 class="name" id="event:pdo">pdo</h4>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line734">line 734</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line737">line 737</a>
</li></ul></dd>


Expand Down Expand Up @@ -5174,7 +5174,7 @@ <h4 class="name" id="event:sync">sync</h4>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line747">line 747</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line750">line 750</a>
</li></ul></dd>


Expand Down Expand Up @@ -5263,7 +5263,7 @@ <h4 class="name" id="event:time">time</h4>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line760">line 760</a>
<a href="device.js.html">device.js</a>, <a href="device.js.html#line763">line 763</a>
</li></ul></dd>


Expand Down
16 changes: 8 additions & 8 deletions SdoClient.html
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ <h4 class="name" id="addServer"><span class="type-signature"></span>addServer<sp

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line909">line 909</a>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line877">line 877</a>
</li></ul></dd>


Expand Down Expand Up @@ -525,7 +525,7 @@ <h4 class="name" id="download"><span class="type-signature type-signature-async"

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line214">line 214</a>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line198">line 198</a>
</li></ul></dd>


Expand Down Expand Up @@ -923,7 +923,7 @@ <h4 class="name" id="getServer"><span class="type-signature"></span>getServer<sp

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line885">line 885</a>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line853">line 853</a>
</li></ul></dd>


Expand Down Expand Up @@ -1086,7 +1086,7 @@ <h4 class="name" id="init"><span class="type-signature"></span>init<span class="

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line872">line 872</a>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line840">line 840</a>
</li></ul></dd>


Expand Down Expand Up @@ -1173,7 +1173,7 @@ <h4 class="name" id="receive"><span class="type-signature"></span>receive<span c

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line365">line 365</a>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line333">line 333</a>
</li></ul></dd>


Expand Down Expand Up @@ -1389,7 +1389,7 @@ <h4 class="name" id="removeServer"><span class="type-signature"></span>removeSer

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line927">line 927</a>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line895">line 895</a>
</li></ul></dd>


Expand Down Expand Up @@ -1664,7 +1664,7 @@ <h4 class="name" id="start"><span class="type-signature"></span>start<span class

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line324">line 324</a>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line292">line 292</a>
</li></ul></dd>


Expand Down Expand Up @@ -1761,7 +1761,7 @@ <h4 class="name" id="stop"><span class="type-signature"></span>stop<span class="

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line345">line 345</a>
<a href="protocol_sdo_client.js.html">protocol/sdo_client.js</a>, <a href="protocol_sdo_client.js.html#line313">line 313</a>
</li></ul></dd>


Expand Down
23 changes: 13 additions & 10 deletions device.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,12 @@ <h1 class="page-title">device.js</h1>
if (!this.id)
throw new Error('id must be set');

if(!this._resetListener) {
if (!this._resetListener) {
this._resetListener = (resetEds) => this._reset(resetEds);
this.nmt.addListener('reset', this._resetListener);
}

if(!this._stateListener) {
if (!this._stateListener) {
this._stateListener = (state) => this._changeState(state);
this.nmt.addListener('changeState', this._stateListener);
}
Expand All @@ -286,11 +286,14 @@ <h1 class="page-title">device.js</h1>
* @since 6.0.0
*/
stop() {
this.nmt.removeListener('reset', this._resetListener);
this._resetListener = null;
try {
this.nmt.removeListener('reset', this._resetListener);
this._resetListener = null;

this.nmt.removeListener('changeState', this._stateListener);
this._stateListener = null;
this.nmt.removeListener('changeState', this._stateListener);
this._stateListener = null;
}
catch (e) { /* ignore */ }

for (const obj of Object.values(this.protocol))
obj.stop();
Expand Down Expand Up @@ -637,7 +640,7 @@ <h1 class="page-title">device.js</h1>
* @listens Nmt#reset
* @private
*/
_reset(resetEds=false) {
_reset(resetEds = false) {
if (resetEds)
this.eds.reset();

Expand Down Expand Up @@ -818,7 +821,7 @@ <h1 class="page-title">device.js</h1>
this.emit('time', date);
});

if(this.lss) {
if (this.lss) {
this.lss.addListener('changeMode', (mode) => {
/**
* Change of LSS mode (deprecated).
Expand Down Expand Up @@ -849,7 +852,7 @@ <h1 class="page-title">device.js</h1>
this.emcy.deviceId = this.id;

for (const obj of Object.values(this.protocol)) {
if(typeof obj.init === 'function')
if (typeof obj.init === 'function')
obj.init();
}

Expand Down Expand Up @@ -878,7 +881,7 @@ <h1 class="page-title">device.js</h1>
*/
Device.prototype.mapEds = deprecate(
function (args) {
if(args.serverId !== undefined)
if (args.serverId !== undefined)
args.id = args.serverId;

this.mapRemoteNode(args);
Expand Down
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ <h2>Porting Guide (Version 5 -&gt; 6)</h2>
still work as expected, however you should switch to using the new iterator
methods (Eds.values(), Eds.entries(), Eds.keys()).</p>
</li>
<li>
<p>SDO client/server parameters will no longer assume you want to add the
node ID if you choose 0x580/0x600 for the SDO COB-IDs. As far as I can tell this
is not officially in the standard, but was a convienence added to some other
libraries.</p>
</li>
</ol>
<h2>Documentation</h2>
<p>Pre-built documentation for the latest release is available
Expand Down
Loading

0 comments on commit 2038c78

Please sign in to comment.