mirror of
https://github.com/floci-io/floci.git
synced 2026-12-02 17:58:05 -05:00
Add clientid(), timestamp(), accountid() and newuuid(), the isNull() and isUndefined() functions, the IN operator against a payload array or an array literal, and array literals such as [lat, long], each following the tables in the AWS IoT SQL reference. Equality extends to arrays (element by element, in order) and objects (by key, in any order). clientid() needs the MQTT client that published, so publish and handlePublish carry the client id: the broker passes its session's client id and an IoT Data Publish over HTTP passes none, which the function reports as n/a as AWS does. principal() stays unparsed: it returns the certificate a device authenticated with, and the broker does not verify one yet.