CEC-2291 Remote Commands (#194)

This commit is contained in:
arpanetus
2022-09-07 23:21:57 +06:00
committed by GitHub
parent 153c6bdcf7
commit aa5a1e20e0
19 changed files with 1187 additions and 148 deletions

View File

@@ -164,10 +164,10 @@ export const VehicleProvider = ({ children }) => {
}
};
const sendCommand = async (vins, command, parameters, token) => {
const sendCommand = async (vins, command, token) => {
try {
setBusy(true);
const result = await api.sendCommand(vins, command, parameters, token);
const result = await api.sendCommand(vins, command, token);
if (result.error)
throw new Error(`Send command error. ${result.message}`);
return result;