def remote_start_transaction_notification(self, **kwargs): print("remote_start_transaction receive is", kwargs) print( "2.client receive remote start transaction request and will return accepted" ) return call_result.RemoteStartTransactionPayload( status=RemoteStartStopStatus.accepted)
def on_remote_start_transaction(self, **kwargs): """Handle remote start request.""" if self.accept is True: asyncio.create_task(self.send_start_transaction()) return call_result.RemoteStartTransactionPayload( RemoteStartStopStatus.accepted) else: return call_result.RemoteStopTransactionPayload( RemoteStartStopStatus.rejected)
def on_remote_start_transaction(self, id_tag): print('START aceptado de id: ',id_tag) return call_result.RemoteStartTransactionPayload( status=RemoteStartStopStatus.accepted )
async def on_remote_start_transaction(self, id_tag, **kwargs): print("Remote start transaction") request = call_result.RemoteStartTransactionPayload( status=AuthorizationStatus.accepted, ) return request