obniz
2026/11/10 アップデート

OS 7.1.0 Released. Advanced Lua features and Lua for obniz Boards

OS 7.1.0 Released. Advanced Lua features and Lua for obniz Boards

(日本語は下部にございます)

obnizOS 7.1.0 is now available. You can update your devices to the latest OS starting today.

For obniz Board users, this is the first update since obnizOS 3.5.0. With this release, every product that runs obnizOS can now use the latest OS.

What This Release Is About

Keeping every product up to date and secure

Many vulnerabilities in network-connected devices have been reported in recent years. obniz keeps updating its OS and lets you update devices remotely from the cloud. As long as you use obniz products, you keep receiving fixes for newly found vulnerabilities. We see this as one of the main values of obniz as a service.

OS updates for obniz Board had stopped, and this release brings it up to the latest OS. We want devices you already use, not only new ones, to stay just as secure.

Doing more on the device, even without the internet

Lua plugins run your own program inside the device. This release greatly expands what Lua plugins can do, so you can go deeper and tune the device for your use case.

The biggest change is that devices can keep running offline. Until now, obniz Board did not work without an internet connection. From now on, it can keep working by itself where there is no network. For example, it can read a sensor, decide what to do, and send data to the cloud or your own server only when needed.

We want you to use the devices you have deployed securely, in more situations, and for a long time. The changes below are the means to that end, and we will keep growing our products and OS in this direction.

Main Changes

Talk directly to your own servers from Lua (net)

Lua plugins can now communicate with your own servers over the current network (Wi-Fi / LTE / Ethernet), without going through obniz Cloud. HTTP, TCP, and UDP are supported.

  • HTTP: net.http.get() / net.http.post() / net.http.request()
  • TCP: up to 8 connections
  • UDP: up to 4 sockets (Wi-Fi and Ethernet only)

Note: TLS (HTTPS) is not supported.

Document: Net

Requests and replies between the cloud and the device (transactions)

obniz.js and Lua plugins can now send a request and wait for the reply.

  • obniz.js → Lua: obniz.plugin.callWait() runs a Lua script and resolves with its return value.
  • Lua → obniz.js: cloud.transactionWait() asks obniz.js and receives the return value of obniz.plugin.onCloudTransaction.

We also added obniz.plugin.onError, which reports Lua errors to obniz.js.

Document: Transaction

New peripherals and system functions

  • PWM, display output, and AT commands to the LTE modem are now available from Lua.
  • Added io.drive() and io.pull() to choose the output mode and the pull resistor.
  • uart.stop() / spi.stop() / i2c.stop() end a peripheral so that you can start it again with different settings, without restarting.
  • Added on_low_memory(), called before memory runs out, and os.getHeap() to check free memory.
  • BLE scan options (PHY, active scan, interval, and more) can now be specified.

Documents: PWM / Display / LTE / I2C / Memory / BLE

To run a device offline, see Internet and Watchdog.

obniz Board and obniz Board 1Y support

obnizOS 7.1.0 is now available for obniz Board (hw=obnizb1) and obniz Board 1Y (hw=obnizb2). Lua peripherals now use logical IO numbers, so Lua code for PWM, UART, SPI, AD, and more runs on obniz Board as is.

obniz Board series has no capability of store Lua script. So rebooting device will lost Lua script.

Improved cellular connectivity

  • On nRF9160 products, the device detects lost network registration and data connections from modem notifications and reconnects step by step, so it recovers sooner.
  • nRF9160 now searches only the LTE bands used in Japan, which shortens network search.
  • On LTE, the keep-alive check with the cloud waits longer, so short coverage gaps no longer disconnect the device.
  • Improved compatibility with 1NCE SIM cards.

Security and stability (ESP-IDF v5.5.6)

ESP-IDF is updated from v5.5.3 to v5.5.6. This includes security fixes in mbedTLS, lwIP (DHCP, DNS, TCP), and Wi-Fi, and fixes for unexpected BLE disconnections and other controller issues.

Changes to Note

New way to choose the BLE scan PHY

The phy1m / phyCoded options of ble.scanStart() are removed and are now ignored. Use the phy option ("1m" / "coded" / "all") instead.

Document: BLE

Wi-Fi password input on the obniz Board screen removed

On obniz Board, you can no longer enter a Wi-Fi password on the screen. Configure Wi-Fi in another way, such as from a browser.

Document: Settings

Faster restart after a connection failure

The 3-second wait before restarting after a failed network connection is removed, so the device recovers sooner when it cannot connect.

Updated Documentation

With this release, we added and updated the following documents.

Target OS

  • obnizOS for Intelligent Edge Kilo ( hw=iekilo1 )
  • obnizOS for Intelligent Edge Micro ( hw=iemicro1 )
  • obnizOS for obniz BLE/Wi-Fi Gateway Gen 2.0 ( hw=blewifi_gw2 )
  • obnizOS for obniz BLE/LTE Gateway (Cat.4) ( hw=blelte_gw2 )
  • obnizOS for AK-030 LTE Cat.M1 USB Dongle ( hw=ak030 )
  • obnizOS for obniz BLE/Wi-Fi Gateway ( hw=encored )
  • obnizOS for IoTBank USB Gateway ( hw=iotbankusbgw )
  • obnizOS for M5Stack Basic ( hw=m5stack_basic )
  • obnizOS for ESP32 ( hw=esp32w or hw=esp32p )
  • obnizOS for obniz Board 1Y ( hw=obnizb2 )
  • obnizOS for obniz Board ( hw=obnizb1 )

How to Update

obnizOS can be updated remotely from the cloud. See OTA for the steps.

See the changelog for all changes.

obnizOS 7.1.0をリリースしました。本日より、最新OSへのアップデートがご利用いただけます。

obniz Boardをお使いの方にとっては、obnizOS 3.5.0以来、久しぶりのアップデートです。本リリースで、obnizOSに対応するすべての製品が最新のOSでご利用いただけるようになりました。

本リリースおよびobniz社の方針について

すべての製品を、最新で安全な状態に

近年、ネットワークにつながる機器の脆弱性が数多く報告されています。obnizはOSを継続的に更新し、クラウドから遠隔でアップデートできるようにしています。obnizの製品を使っている限り、新たに見つかった脆弱性への対策を受け取り続けられることは、obnizをサービスとして提供する大きな価値だと考えています。

これまでDIY向けのobniz BoardにおいてはOSの更新されておりませんでしたが、本リリースで最新のOSに追いつきました。新しい製品だけでなく、すでにお使いいただいている製品も、同じように安全な状態を保てるようにしています。

ネットがなくても動く、より深い使い方へ

LuaプラグインによりOSの機能を拡張でき、端末の高度な制御が可能です。具体的にはデバイスの中でお客様のプログラムを安全に動かす仕組みとなります。本リリースではLuaプラグインで使える機能を大きく広げ、より深い使い方や、用途に合わせたチューニングができるようになりました。

特に大きいのは、安全かつオフラインでも動かせることです。これまでobniz Boardはインターネットにつながっていないと動きませんでしたが、今後はネットがない場所でも、デバイスが自分で動き続けられます。たとえば、センサーの値を読んで判断し、必要なときだけクラウドや自社のサーバーへ送る、といった使い方ができます。

obnizは、一度導入していただいたデバイスを、安全に、より幅広い場面で、長く活用していただきたいと考えています。以下の変更点は、それを実現するための手段です。今後もこの方針で、製品とOSを広げていきます。

主な変更点

Luaプラグインから自社サーバーへ直接通信(net)

接続中のネットワーク(Wi-Fi / LTE / Ethernet)を使って、obniz Cloudを経由せずに自社のサーバーと通信できるようになりました。HTTP・TCP・UDPに対応しています。

  • HTTP: net.http.get() / net.http.post() / net.http.request()
  • TCP: 最大8接続
  • UDP: 最大4ソケット(Wi-FiとEthernetのみ)

※ TLS(HTTPS)には対応していません。

ドキュメント: Net

クラウドとの問い合わせ・応答(トランザクション)

obniz.jsとLuaプラグインの間で、問い合わせて答えを受け取るやり取りができるようになりました。

  • obniz.js → Lua: obniz.plugin.callWait() でLuaスクリプトを実行し、その返り値を受け取ります。
  • Lua → obniz.js: cloud.transactionWait() でobniz.jsに問い合わせ、obniz.plugin.onCloudTransaction の返り値を受け取ります。

また、Luaのエラーをobniz.js側で受け取る obniz.plugin.onError を追加しました。

ドキュメント: トランザクション

ペリフェラルとシステム機能の追加

  • PWM、ディスプレイ表示、LTEモデムへのATコマンド送信をLuaから使えるようになりました。
  • IOの出力方式とプル抵抗の指定(io.drive() / io.pull())を追加しました。
  • uart.stop() / spi.stop() / i2c.stop() で、再起動せずにペリフェラルを終了し、別の設定で開始し直せるようになりました。
  • メモリ不足の前に呼ばれる on_low_memory() と、空きメモリを確認する os.getHeap() を追加しました。
  • BLEスキャンのオプション(PHY、アクティブスキャン、間隔など)を指定できるようになりました。

ドキュメント: PWM / ディスプレイ / LTE / I2C / メモリ / BLE

オフラインでの動かし方は、インターネット接続とウォッチドッグをご覧ください。

obniz Board / obniz Board 1Yに対応

obniz Board(hw=obnizb1)とobniz Board 1Y(hw=obnizb2)でobnizOS 7.1.0をご利用いただけるようになりました。Luaのペリフェラルを論理IOで扱うようにしたため、PWM・UART・SPI・ADなどのLuaコードがobniz Boardでもそのまま動作します。

obniz Boardシリーズでは内部にLuaを保存する領域がありません。再起動でLuaスクリプトは失われます。

セルラー接続の改善

  • nRF9160搭載製品で、網登録やデータ接続の喪失をモデムからの通知で検知し、段階的に再接続することで、復帰を早めました。
  • nRF9160で使用するLTEバンドを日本で利用できるバンドに限定し、網の探索時間を短縮しました。
  • LTE接続時は、クラウドとの死活監視の待ち時間を延長し、短時間の圏外では切断しないようにしました。
  • 1NCE SIMとの接続互換性を改善しました。

セキュリティと安定性(ESP-IDF v5.5.6)

ESP-IDFをv5.5.3からv5.5.6に更新し、mbedTLS、lwIP(DHCP・DNS・TCP)、Wi-Fiの脆弱性修正と、BLEコントローラーの予期しない切断などの修正を取り込みました。

ご注意いただきたい変更点

BLEスキャンのPHY指定方法の変更

ble.scanStart() の phy1m / phyCoded オプションは廃止され、指定しても無視されます。代わりに phy オプション("1m" / "coded" / "all")をお使いください。

ドキュメント: BLE

obniz Boardの画面からのWi-Fiパスワード入力を削除

obniz Boardで、画面からWi-Fiのパスワードを入力する機能を削除しました。Wi-Fiの設定はブラウザなど、ほかの方法で行ってください。

ドキュメント: 設定

接続失敗時の再起動を早めました

ネットワークへの接続に失敗したときの、再起動前の3秒の待機をなくしました。接続できない状態からの復帰が早くなります。

ドキュメントを拡充しました

本リリースにあわせて、以下のドキュメントを追加・更新しました。

対象OS

  • obnizOS for Intelligent Edge Kilo ( hw=iekilo1 )
  • obnizOS for Intelligent Edge Micro ( hw=iemicro1 )
  • obnizOS for obniz BLE/Wi-Fi Gateway Gen 2.0 ( hw=blewifi_gw2 )
  • obnizOS for obniz BLE/LTE Gateway (Cat.4) ( hw=blelte_gw2 )
  • obnizOS for AK-030 LTE Cat.M1 USB Dongle ( hw=ak030 )
  • obnizOS for obniz BLE/Wi-Fi Gateway ( hw=encored )
  • obnizOS for IoTBank USB Gateway ( hw=iotbankusbgw )
  • obnizOS for M5Stack Basic ( hw=m5stack_basic )
  • obnizOS for ESP32 ( hw=esp32w or hw=esp32p )
  • obnizOS for obniz Board 1Y ( hw=obnizb2 )
  • obnizOS for obniz Board ( hw=obnizb1 )

アップデート方法

obnizOSはクラウドから遠隔でアップデートできます。手順はOTAのページをご覧ください。

すべての変更点は変更履歴をご確認ください。