You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
612 B

  1. import http from 'libs/http'
  2. export const debugControl = <T>(params: System.CmdControlParams<T>): Promise<null> => http.post('/debug/cmd', params)
  3. export const control = <T>(params: System.CmdControlParams<T>): Promise<null> => http.post('/cmd', params)
  4. export const getStatus = (): Promise<System.SystemStatus> => http.get('/sys/device-status')
  5. export const getPoint = (): Promise<string> => http.get('/cmd/step/gantry-point')
  6. export const requireOutTray = (): Promise<{ moduleCode: string }[]> => http.get('/self-test/require-out-tray')
  7. export const getTime = (): Promise<number> => http.get('/sys/datetime')