Skip to main content

Release 25

New features (Imp)

Native methods (such as pin.write) can now be bound to their objects in order to form a free function: this can be useful for optimising tight loops as it reduces the number of lookups in the global table. For technical (object-lifetime) reasons you can't bind to lazily-generated objects such as hardware.pin5 directly – hardware.pin5 must be assigned to another object first: chipSelect ← hardware.pin5; csWriter ← chipSelect.write.bindenv(chipSelect);

New Features (agent)

To allow for more precise timing, the standard Squirrel date() function has been extended to return a “usec” field containing the fractional part of the current second, in microseconds – plus, for ease of calculation, a “time” field containing the Unix time (seconds since 1970-01-01) as an integer.

Other things you may notice

  • ItemConnect to wifi time is much improved (DHCP bug which added 2 seconds to connect time has been fixed)
  • WiFi stability should be much better (merged latest wifi driver code from chipset supplier)
  • No need for watchdog code in order to keep an imp connected when it's idle

New API Calls and Functionality