farmbot
Version:
Farmbot Javascript client.
19 lines (18 loc) • 717 B
TypeScript
export interface FarmBotInternalConfig {
speed: number;
token: string;
secure: boolean;
mqttServer: string;
mqttUsername: string;
LAST_PING_OUT: number;
LAST_PING_IN: number;
}
export interface FarmbotConstructorParams extends Partial<FarmBotInternalConfig> {
/** All inputs are optional, except for `token`. */
token: string;
}
export declare const CONFIG_DEFAULTS: {
speed: number;
};
export declare const FIX_ATOB_FIRST = "NOTE TO NODEJS USERS:\n\nThis library requires an 'atob()' function.\nPlease fix this first.\nSOLUTION: https://github.com/FarmBot/farmbot-js/issues/33";
export declare const generateConfig: (input: FarmbotConstructorParams) => FarmBotInternalConfig;