registry_charge_event

To register a battery charge, use the unit/registry_charge_event command.

Copied!
svc=unit/registry_charge_event&params={
	"date": <uint>,        
	"volume": <double>,    
	"cost": <double>,      
	"location": "<text>",  
	"x": <double>,         
	"y": <double>,         
	"description": "<text>", 
	"itemId": <long>       
}

Parameters

Parameter

Description

date

Date.

volume

Amount of energy used to recharge the battery, in kWh.

cost

Cost.

location

Unit location.

x

Longitude.

y

Latitude.

description

Description.

itemId

Unit ID.

Response

If the request is completed successfully, an empty response is returned.

Copied!
{ }	

If the request fails, an error code is returned.

Error codes

Parameter

Description

4

This user can't execute the request.

6

Failed to register a battery charge.

7

The user doesn't have the required access right to the unit (ADF_ACL_AVL_UNIT_REG_EVENTS).
Download PDF file
Download Word document

See also