CEC-222, CEC-214 Send car commands and log filtering (#41)
* Send car commands * Log filter control * Fix message format * Move VehicleContext
This commit is contained in:
@@ -25,6 +25,14 @@ const vehiclesAPI = {
|
||||
data: [2021, 2022],
|
||||
};
|
||||
},
|
||||
sendCommand: async (vin, command, token) => {
|
||||
return {
|
||||
vin, command,
|
||||
}
|
||||
},
|
||||
sendLog: async (vin, filter, token) => {
|
||||
return Object.assign(filter, {vin});
|
||||
},
|
||||
};
|
||||
|
||||
export default vehiclesAPI;
|
||||
|
||||
Reference in New Issue
Block a user