opensensemap-client
    Preparing search index...

    Function updateBox

    • Parameters

      Returns Promise<
          {
              code: "Ok";
              data: {
                  _id: string;
                  createdAt: string;
                  currentLocation: {
                      coordinates: | { height?: number; lat: number; lng: number }
                      | [number, number, undefined | number];
                      timestamp: string;
                      type: "Point";
                  };
                  descriptiom?: string;
                  exposure: "indoor"
                  | "outdoor"
                  | "mobile"
                  | "unknown";
                  grouptag?: ("indoor" | "outdoor" | "mobile" | "unknown")[];
                  image?: string;
                  lastMeasurementAt?: string;
                  loc: {
                      geometry: {
                          coordinates:
                              | { height?: number; lat: number; lng: number }
                              | [number, number, undefined | number];
                          timestamp: string;
                          type: "Point";
                      };
                      type: "Feature";
                  }[];
                  model: string;
                  name: string;
                  sensor: unknown[];
                  updatedAt: string;
                  weblink?: string;
              } & {
                  access_token: string;
                  integrations: {
                      mqtt: | {
                          connectionOptions: string;
                          decodeOptions: string;
                          enabled: boolean;
                          messageFormat: "json"
                          | "csv";
                          topic: string;
                          url: string;
                      }
                      | { enabled: false };
                      ttn?: {
                          app_id: string;
                          decodeOptions?: unknown[];
                          dev_id: string;
                          port: number;
                          profile:
                              | "json"
                              | "lora-serialization"
                              | "sensebox/home"
                              | "debug"
                              | "cayenne-lpp";
                      };
                  };
                  useAuth?: boolean;
              };
          },
      >