Ready

The ready event is called on the bluelink client instance after successfully logging into the account.

client.on('ready', async () => {
  const vehicle = client.getVehicle('5NMS55555555555555');
  try {
    const response = await vehicle.lock();
    console.log(response);
  } catch (err) {
    // log the error from the command invocation 
  }
});

on(event: 'ready', fnc: (vehicles: VEHICLE_TYPE[]) => void)