@@ -86,7 +86,7 @@ class DiagnosticStatusResponse(ModbusPDU):
8686
8787 It works by performing all of the encoding and decoding of variable
8888 data and lets the higher classes define what extra data to append
89- and how to execute a request
89+ and how to update_datastore a request
9090 """
9191
9292 function_code = 0x08
@@ -145,7 +145,7 @@ class DiagnosticStatusSimpleRequest(DiagnosticStatusRequest):
145145 2 bytes of data.
146146
147147 If a function inherits this, they only need to implement
148- the execute method
148+ the update_datastore method
149149 """
150150
151151 def __init__ (self , data = 0x0000 , slave = 1 , transaction = 0 , skip_encode = False ):
@@ -159,9 +159,9 @@ def __init__(self, data=0x0000, slave=1, transaction=0, skip_encode=False):
159159 DiagnosticStatusRequest .__init__ (self , slave = slave , transaction = transaction , skip_encode = skip_encode )
160160 self .message = data
161161
162- async def execute (self , * args ): # pragma: no cover
162+ async def update_datastore (self , * args ): # pragma: no cover
163163 """Raise if not implemented."""
164- raise NotImplementedException ("Diagnostic Message Has No Execute Method" )
164+ raise NotImplementedException ("Diagnostic Message Has No update_datastore Method" )
165165
166166
167167class DiagnosticStatusSimpleResponse (DiagnosticStatusResponse ):
@@ -205,8 +205,8 @@ def __init__(self, message=b"\x00\x00", slave=1, transaction=0, skip_encode=Fals
205205 raise ModbusException (f"message({ type (message )} ) must be bytes" )
206206 self .message = message
207207
208- async def execute (self , * _args ): # pragma: no cover
209- """Execute the loopback request (builds the response).
208+ async def update_datastore (self , * _args ): # pragma: no cover
209+ """update_datastore the loopback request (builds the response).
210210
211211 :returns: The populated loopback response message
212212 """
@@ -245,7 +245,7 @@ class RestartCommunicationsOptionRequest(DiagnosticStatusRequest):
245245 currently in Listen Only Mode, no response is returned. This function is
246246 the only one that brings the port out of Listen Only Mode. If the port is
247247 not currently in Listen Only Mode, a normal response is returned. This
248- occurs before the restart is executed .
248+ occurs before the restart is update_datastored .
249249 """
250250
251251 sub_function_code = 0x0001
@@ -261,7 +261,7 @@ def __init__(self, toggle=False, slave=1, transaction=0, skip_encode=False):
261261 else :
262262 self .message = [ModbusStatus .OFF ] # pragma: no cover
263263
264- async def execute (self , * _args ): # pragma: no cover
264+ async def update_datastore (self , * _args ): # pragma: no cover
265265 """Clear event log and restart.
266266
267267 :returns: The initialized response message
@@ -278,7 +278,7 @@ class RestartCommunicationsOptionResponse(DiagnosticStatusResponse):
278278 currently in Listen Only Mode, no response is returned. This function is
279279 the only one that brings the port out of Listen Only Mode. If the port is
280280 not currently in Listen Only Mode, a normal response is returned. This
281- occurs before the restart is executed .
281+ occurs before the restart is update_datastored .
282282 """
283283
284284 sub_function_code = 0x0001
@@ -303,8 +303,8 @@ class ReturnDiagnosticRegisterRequest(DiagnosticStatusSimpleRequest):
303303
304304 sub_function_code = 0x0002
305305
306- async def execute (self , * args ): # pragma: no cover
307- """Execute the diagnostic request on the given device.
306+ async def update_datastore (self , * args ): # pragma: no cover
307+ """update_datastore the diagnostic request on the given device.
308308
309309 :returns: The initialized response message
310310 """
@@ -337,8 +337,8 @@ class ChangeAsciiInputDelimiterRequest(DiagnosticStatusSimpleRequest):
337337
338338 sub_function_code = 0x0003
339339
340- async def execute (self , * args ): # pragma: no cover
341- """Execute the diagnostic request on the given device.
340+ async def update_datastore (self , * args ): # pragma: no cover
341+ """update_datastore the diagnostic request on the given device.
342342
343343 :returns: The initialized response message
344344 """
@@ -372,8 +372,8 @@ class ForceListenOnlyModeRequest(DiagnosticStatusSimpleRequest):
372372
373373 sub_function_code = 0x0004
374374
375- async def execute (self , * args ): # pragma: no cover
376- """Execute the diagnostic request on the given device.
375+ async def update_datastore (self , * args ): # pragma: no cover
376+ """update_datastore the diagnostic request on the given device.
377377
378378 :returns: The initialized response message
379379 """
@@ -410,8 +410,8 @@ class ClearCountersRequest(DiagnosticStatusSimpleRequest):
410410
411411 sub_function_code = 0x000A
412412
413- async def execute (self , * args ): # pragma: no cover
414- """Execute the diagnostic request on the given device.
413+ async def update_datastore (self , * args ): # pragma: no cover
414+ """update_datastore the diagnostic request on the given device.
415415
416416 :returns: The initialized response message
417417 """
@@ -441,8 +441,8 @@ class ReturnBusMessageCountRequest(DiagnosticStatusSimpleRequest):
441441
442442 sub_function_code = 0x000B
443443
444- async def execute (self , * args ): # pragma: no cover
445- """Execute the diagnostic request on the given device.
444+ async def update_datastore (self , * args ): # pragma: no cover
445+ """update_datastore the diagnostic request on the given device.
446446
447447 :returns: The initialized response message
448448 """
@@ -474,8 +474,8 @@ class ReturnBusCommunicationErrorCountRequest(DiagnosticStatusSimpleRequest):
474474
475475 sub_function_code = 0x000C
476476
477- async def execute (self , * args ): # pragma: no cover
478- """Execute the diagnostic request on the given device.
477+ async def update_datastore (self , * args ): # pragma: no cover
478+ """update_datastore the diagnostic request on the given device.
479479
480480 :returns: The initialized response message
481481 """
@@ -507,8 +507,8 @@ class ReturnBusExceptionErrorCountRequest(DiagnosticStatusSimpleRequest):
507507
508508 sub_function_code = 0x000D
509509
510- async def execute (self , * args ): # pragma: no cover
511- """Execute the diagnostic request on the given device.
510+ async def update_datastore (self , * args ): # pragma: no cover
511+ """update_datastore the diagnostic request on the given device.
512512
513513 :returns: The initialized response message
514514 """
@@ -540,8 +540,8 @@ class ReturnSlaveMessageCountRequest(DiagnosticStatusSimpleRequest):
540540
541541 sub_function_code = 0x000E
542542
543- async def execute (self , * args ): # pragma: no cover
544- """Execute the diagnostic request on the given device.
543+ async def update_datastore (self , * args ): # pragma: no cover
544+ """update_datastore the diagnostic request on the given device.
545545
546546 :returns: The initialized response message
547547 """
@@ -573,8 +573,8 @@ class ReturnSlaveNoResponseCountRequest(DiagnosticStatusSimpleRequest):
573573
574574 sub_function_code = 0x000F
575575
576- async def execute (self , * args ): # pragma: no cover
577- """Execute the diagnostic request on the given device.
576+ async def update_datastore (self , * args ): # pragma: no cover
577+ """update_datastore the diagnostic request on the given device.
578578
579579 :returns: The initialized response message
580580 """
@@ -607,8 +607,8 @@ class ReturnSlaveNAKCountRequest(DiagnosticStatusSimpleRequest):
607607
608608 sub_function_code = 0x0010
609609
610- async def execute (self , * args ): # pragma: no cover
611- """Execute the diagnostic request on the given device.
610+ async def update_datastore (self , * args ): # pragma: no cover
611+ """update_datastore the diagnostic request on the given device.
612612
613613 :returns: The initialized response message
614614 """
@@ -641,8 +641,8 @@ class ReturnSlaveBusyCountRequest(DiagnosticStatusSimpleRequest):
641641
642642 sub_function_code = 0x0011
643643
644- async def execute (self , * args ): # pragma: no cover
645- """Execute the diagnostic request on the given device.
644+ async def update_datastore (self , * args ): # pragma: no cover
645+ """update_datastore the diagnostic request on the given device.
646646
647647 :returns: The initialized response message
648648 """
@@ -676,8 +676,8 @@ class ReturnSlaveBusCharacterOverrunCountRequest(DiagnosticStatusSimpleRequest):
676676
677677 sub_function_code = 0x0012
678678
679- async def execute (self , * args ): # pragma: no cover
680- """Execute the diagnostic request on the given device.
679+ async def update_datastore (self , * args ): # pragma: no cover
680+ """update_datastore the diagnostic request on the given device.
681681
682682 :returns: The initialized response message
683683 """
@@ -709,8 +709,8 @@ class ReturnIopOverrunCountRequest(DiagnosticStatusSimpleRequest):
709709
710710 sub_function_code = 0x0013
711711
712- async def execute (self , * args ): # pragma: no cover
713- """Execute the diagnostic request on the given device.
712+ async def update_datastore (self , * args ): # pragma: no cover
713+ """update_datastore the diagnostic request on the given device.
714714
715715 :returns: The initialized response message
716716 """
@@ -742,8 +742,8 @@ class ClearOverrunCountRequest(DiagnosticStatusSimpleRequest):
742742
743743 sub_function_code = 0x0014
744744
745- async def execute (self , * args ): # pragma: no cover
746- """Execute the diagnostic request on the given device.
745+ async def update_datastore (self , * args ): # pragma: no cover
746+ """update_datastore the diagnostic request on the given device.
747747
748748 :returns: The initialized response message
749749 """
@@ -794,8 +794,8 @@ def get_response_pdu_size(self):
794794 data = 0
795795 return 1 + 2 + 2 + 2 + data
796796
797- async def execute (self , * args ): # pragma: no cover
798- """Execute the diagnostic request on the given device.
797+ async def update_datastore (self , * args ): # pragma: no cover
798+ """update_datastore the diagnostic request on the given device.
799799
800800 :returns: The initialized response message
801801 """
0 commit comments