src/app/www/js/functions.js
/**
     * Calls an API resource with the active implementation.
     * @param {API.Resource} resource 
     * @param {FormData} requestBody 
     */
Calls an API resource with the active implementation.
@param {API.Resource} resource
@param {FormData} requestBody
Calls an API resource with the active implementation . @param { API . Resource } resource @param { FormData } requestBody
static async call(resource, requestBody) {
        if(!API.activeModule) {
            toast.show("Enable bluetooth or Wi-Fi module first!", Toast.Mode.ERROR);
            return Promise.reject();
        }
        return API.activeModule.call(resource, requestBody);
    }
static async call ( resource , requestBody ) { if ( ! API . activeModule ) { toast . show ( "Enable bluetooth or Wi-Fi module first!" , Toast . Mode . ERROR ) ; return Promise . reject ( ) ; } return API . activeModule . call ( resource , requestBody ) ; }
Calls an API resource with the active implementation.
Calls an API resource with the active implementation .