Jerry Johns | f68cd64 | 2022-01-28 16:39:08 -0800 | [diff] [blame] | 1 | { |
| 2 | "cells": [ |
| 3 | { |
| 4 | "cell_type": "markdown", |
| 5 | "id": "9cd8236c-1a11-4d08-aad3-d1744d1b26e3", |
| 6 | "metadata": {}, |
| 7 | "source": [ |
| 8 | "# REPL Basics\n", |
| 9 | "\n", |
| 10 | "<a href=\"http://35.236.121.59/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fproject-chip%2Fconnectedhomeip&urlpath=lab%2Ftree%2Fconnectedhomeip%2Fdocs%2Fguides%2Frepl%2FMatter%2520-%2520REPL%2520Intro.ipynb&branch=master\">\n", |
| 11 | "<img src=\"https://i.ibb.co/hR3yWsC/launch-playground.png\" alt=\"drawing\" width=\"130\"/>\n", |
| 12 | "</a>\n", |
| 13 | "<br></br>\n", |
| 14 | "\n", |
| 15 | "This goes over the basics of interacting with the REPL." |
| 16 | ] |
| 17 | }, |
| 18 | { |
| 19 | "cell_type": "markdown", |
| 20 | "id": "7b7f651c-2e64-4d0e-aa93-1a01d093c946", |
| 21 | "metadata": { |
| 22 | "tags": [] |
| 23 | }, |
| 24 | "source": [ |
| 25 | "## Initialization\n", |
| 26 | "\n", |
| 27 | "Let's first begin by setting up by importing some key modules that are needed to make it easier for us to interact with the Matter stack.\n", |
| 28 | "\n", |
| 29 | "`ChipReplStartup.py` is run within the global namespace. This results in all of its imports being made available here.\n", |
| 30 | "\n", |
| 31 | "> **NOTE**: _This is not needed if you launch the REPL from the command-line._" |
| 32 | ] |
| 33 | }, |
| 34 | { |
| 35 | "cell_type": "code", |
| 36 | "execution_count": 1, |
| 37 | "id": "cdffbe57-bd09-41db-a624-cbfcd65c6eae", |
| 38 | "metadata": { |
| 39 | "tags": [] |
| 40 | }, |
| 41 | "outputs": [ |
| 42 | { |
| 43 | "data": { |
| 44 | "text/html": [ |
| 45 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #00ff00; text-decoration-color: #00ff00\">──────────────────────────────────────── </span>Matter REPL<span style=\"color: #00ff00; text-decoration-color: #00ff00\"> ────────────────────────────────────────</span>\n", |
| 46 | "</pre>\n" |
| 47 | ], |
| 48 | "text/plain": [ |
| 49 | "\u001b[92m──────────────────────────────────────── \u001b[0mMatter REPL\u001b[92m ────────────────────────────────────────\u001b[0m\n" |
| 50 | ] |
| 51 | }, |
| 52 | "metadata": {}, |
| 53 | "output_type": "display_data" |
| 54 | }, |
| 55 | { |
| 56 | "data": { |
| 57 | "text/html": [ |
| 58 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n", |
| 59 | " \n", |
| 60 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> </span>\n", |
| 61 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> Welcome to the Matter Python REPL!</span>\n", |
| 62 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> </span>\n", |
| 63 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> For help, please type </span><span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">matterhelp()</span>\n", |
| 64 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> </span>\n", |
| 65 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> To get more information on a particular object/class, you can pass</span>\n", |
| 66 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> that into </span><span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">matterhelp()</span><span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> as well.</span>\n", |
| 67 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> </span>\n", |
| 68 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> </span>\n", |
| 69 | "</pre>\n" |
| 70 | ], |
| 71 | "text/plain": [ |
| 72 | "\n", |
| 73 | " \n", |
| 74 | "\u001b[1;34m \u001b[0m\n", |
| 75 | "\u001b[1;34m Welcome to the Matter Python REPL!\u001b[0m\n", |
| 76 | "\u001b[1;34m \u001b[0m\n", |
| 77 | "\u001b[1;34m For help, please type \u001b[0m\u001b[1;32mmatterhelp\u001b[0m\u001b[1;32m(\u001b[0m\u001b[1;32m)\u001b[0m\n", |
| 78 | "\u001b[1;34m \u001b[0m\n", |
| 79 | "\u001b[1;34m To get more information on a particular object/class, you can pass\u001b[0m\n", |
| 80 | "\u001b[1;34m that into \u001b[0m\u001b[1;32mmatterhelp\u001b[0m\u001b[1;32m(\u001b[0m\u001b[1;32m)\u001b[0m\u001b[1;34m as well.\u001b[0m\n", |
| 81 | "\u001b[1;34m \u001b[0m\n", |
| 82 | "\u001b[1;34m \u001b[0m\n" |
| 83 | ] |
| 84 | }, |
| 85 | "metadata": {}, |
| 86 | "output_type": "display_data" |
| 87 | }, |
| 88 | { |
| 89 | "data": { |
| 90 | "text/html": [ |
| 91 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #00ff00; text-decoration-color: #00ff00\">─────────────────────────────────────────────────────────────────────────────────────────────</span>\n", |
| 92 | "</pre>\n" |
| 93 | ], |
| 94 | "text/plain": [ |
| 95 | "\u001b[92m─────────────────────────────────────────────────────────────────────────────────────────────\u001b[0m\n" |
| 96 | ] |
| 97 | }, |
| 98 | "metadata": {}, |
| 99 | "output_type": "display_data" |
| 100 | }, |
| 101 | { |
| 102 | "name": "stderr", |
| 103 | "output_type": "stream", |
| 104 | "text": [ |
| 105 | "2022-01-25 16:57:54 johnsj-macbookpro1.roam.corp.google.com root[27642] CRITICAL Loading configuration from /tmp/repl-storage.json...\n" |
| 106 | ] |
| 107 | }, |
| 108 | { |
| 109 | "data": { |
| 110 | "text/html": [ |
| 111 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n", |
| 112 | "\n", |
| 113 | "</pre>\n" |
| 114 | ], |
| 115 | "text/plain": [ |
| 116 | "\n", |
| 117 | "\n" |
| 118 | ] |
| 119 | }, |
| 120 | "metadata": {}, |
| 121 | "output_type": "display_data" |
| 122 | }, |
| 123 | { |
| 124 | "data": { |
| 125 | "text/html": [ |
| 126 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #af00ff; text-decoration-color: #af00ff\">Restoring FabricAdmin from storage to manage FabricId </span><span style=\"color: #af00ff; text-decoration-color: #af00ff; font-weight: bold\">1</span><span style=\"color: #af00ff; text-decoration-color: #af00ff\">, FabricIndex </span><span style=\"color: #af00ff; text-decoration-color: #af00ff; font-weight: bold\">1</span><span style=\"color: #af00ff; text-decoration-color: #af00ff\">...</span>\n", |
| 127 | "</pre>\n" |
| 128 | ], |
| 129 | "text/plain": [ |
| 130 | "\u001b[38;5;129mRestoring FabricAdmin from storage to manage FabricId \u001b[0m\u001b[1;38;5;129m1\u001b[0m\u001b[38;5;129m, FabricIndex \u001b[0m\u001b[1;38;5;129m1\u001b[0m\u001b[38;5;129m...\u001b[0m\n" |
| 131 | ] |
| 132 | }, |
| 133 | "metadata": {}, |
| 134 | "output_type": "display_data" |
| 135 | }, |
| 136 | { |
| 137 | "name": "stdout", |
| 138 | "output_type": "stream", |
| 139 | "text": [ |
| 140 | "New FabricAdmin: FabricId: 1(1)\n" |
| 141 | ] |
| 142 | }, |
| 143 | { |
| 144 | "data": { |
| 145 | "text/html": [ |
| 146 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #af00ff; text-decoration-color: #af00ff\">Restoring FabricAdmin from storage to manage FabricId </span><span style=\"color: #af00ff; text-decoration-color: #af00ff; font-weight: bold\">2</span><span style=\"color: #af00ff; text-decoration-color: #af00ff\">, FabricIndex </span><span style=\"color: #af00ff; text-decoration-color: #af00ff; font-weight: bold\">2</span><span style=\"color: #af00ff; text-decoration-color: #af00ff\">...</span>\n", |
| 147 | "</pre>\n" |
| 148 | ], |
| 149 | "text/plain": [ |
| 150 | "\u001b[38;5;129mRestoring FabricAdmin from storage to manage FabricId \u001b[0m\u001b[1;38;5;129m2\u001b[0m\u001b[38;5;129m, FabricIndex \u001b[0m\u001b[1;38;5;129m2\u001b[0m\u001b[38;5;129m...\u001b[0m\n" |
| 151 | ] |
| 152 | }, |
| 153 | "metadata": {}, |
| 154 | "output_type": "display_data" |
| 155 | }, |
| 156 | { |
| 157 | "name": "stdout", |
| 158 | "output_type": "stream", |
| 159 | "text": [ |
| 160 | "New FabricAdmin: FabricId: 2(2)\n" |
| 161 | ] |
| 162 | }, |
| 163 | { |
| 164 | "data": { |
| 165 | "text/html": [ |
| 166 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n", |
| 167 | "<span style=\"color: #000080; text-decoration-color: #000080\">Fabric Admins have been loaded and are available at </span><span style=\"color: #800000; text-decoration-color: #800000\">fabricAdmins</span>\n", |
| 168 | "</pre>\n" |
| 169 | ], |
| 170 | "text/plain": [ |
| 171 | "\n", |
| 172 | "\u001b[34mFabric Admins have been loaded and are available at \u001b[0m\u001b[31mfabricAdmins\u001b[0m\n" |
| 173 | ] |
| 174 | }, |
| 175 | "metadata": {}, |
| 176 | "output_type": "display_data" |
| 177 | }, |
| 178 | { |
| 179 | "data": { |
| 180 | "text/html": [ |
| 181 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n", |
| 182 | "\n", |
| 183 | "</pre>\n" |
| 184 | ], |
| 185 | "text/plain": [ |
| 186 | "\n", |
| 187 | "\n" |
| 188 | ] |
| 189 | }, |
| 190 | "metadata": {}, |
| 191 | "output_type": "display_data" |
| 192 | }, |
| 193 | { |
| 194 | "data": { |
| 195 | "text/html": [ |
| 196 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #af00ff; text-decoration-color: #af00ff\">Creating default device controller on fabric </span><span style=\"color: #af00ff; text-decoration-color: #af00ff; font-weight: bold\">1</span><span style=\"color: #af00ff; text-decoration-color: #af00ff\">...</span>\n", |
| 197 | "</pre>\n" |
| 198 | ], |
| 199 | "text/plain": [ |
| 200 | "\u001b[38;5;129mCreating default device controller on fabric \u001b[0m\u001b[1;38;5;129m1\u001b[0m\u001b[38;5;129m...\u001b[0m\n" |
| 201 | ] |
| 202 | }, |
| 203 | "metadata": {}, |
| 204 | "output_type": "display_data" |
| 205 | }, |
| 206 | { |
| 207 | "name": "stdout", |
| 208 | "output_type": "stream", |
| 209 | "text": [ |
| 210 | "Allocating new controller with FabricId: 1(1), NodeId: 1\n" |
| 211 | ] |
| 212 | }, |
| 213 | { |
| 214 | "data": { |
| 215 | "text/html": [ |
| 216 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n", |
| 217 | "\n", |
| 218 | "<span style=\"color: #000080; text-decoration-color: #000080\">Default CHIP Device Controller has been initialized to manage </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">fabricAdmins[</span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">0</span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">]</span><span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\">, and is </span>\n", |
| 219 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\">available as </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">devCtrl</span>\n", |
| 220 | "</pre>\n" |
| 221 | ], |
| 222 | "text/plain": [ |
| 223 | "\n", |
| 224 | "\n", |
| 225 | "\u001b[34mDefault CHIP Device Controller has been initialized to manage \u001b[0m\u001b[1;31mfabricAdmins\u001b[0m\u001b[1;31m[\u001b[0m\u001b[1;31m0\u001b[0m\u001b[1;31m]\u001b[0m\u001b[1;34m, and is \u001b[0m\n", |
| 226 | "\u001b[1;34mavailable as \u001b[0m\u001b[1;31mdevCtrl\u001b[0m\n" |
| 227 | ] |
| 228 | }, |
| 229 | "metadata": {}, |
| 230 | "output_type": "display_data" |
| 231 | } |
| 232 | ], |
| 233 | "source": [ |
| 234 | "import chip.native\n", |
| 235 | "import pkgutil\n", |
| 236 | "module = pkgutil.get_loader('chip.ChipReplStartup')\n", |
| 237 | "%run {module.path}" |
| 238 | ] |
| 239 | }, |
| 240 | { |
| 241 | "cell_type": "markdown", |
| 242 | "id": "49a01315-6cac-4f8a-830d-adb5b7b9fc27", |
| 243 | "metadata": {}, |
| 244 | "source": [ |
| 245 | "## Persistent Storage\n", |
| 246 | "\n", |
| 247 | "> NOTE: By default, the REPL points to `/tmp/repl-storage.json` for its persistent storage. To change that location, you can pass that in directly as follows:" |
| 248 | ] |
| 249 | }, |
| 250 | { |
| 251 | "cell_type": "code", |
| 252 | "execution_count": 2, |
| 253 | "id": "c05b4b22-f6b1-4669-9358-98b0fe9a9136", |
| 254 | "metadata": {}, |
| 255 | "outputs": [ |
| 256 | { |
| 257 | "data": { |
| 258 | "text/html": [ |
| 259 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #00ff00; text-decoration-color: #00ff00\">──────────────────────────────────────── </span>Matter REPL<span style=\"color: #00ff00; text-decoration-color: #00ff00\"> ────────────────────────────────────────</span>\n", |
| 260 | "</pre>\n" |
| 261 | ], |
| 262 | "text/plain": [ |
| 263 | "\u001b[92m──────────────────────────────────────── \u001b[0mMatter REPL\u001b[92m ────────────────────────────────────────\u001b[0m\n" |
| 264 | ] |
| 265 | }, |
| 266 | "metadata": {}, |
| 267 | "output_type": "display_data" |
| 268 | }, |
| 269 | { |
| 270 | "data": { |
| 271 | "text/html": [ |
| 272 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n", |
| 273 | " \n", |
| 274 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> </span>\n", |
| 275 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> Welcome to the Matter Python REPL!</span>\n", |
| 276 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> </span>\n", |
| 277 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> For help, please type </span><span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">matterhelp()</span>\n", |
| 278 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> </span>\n", |
| 279 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> To get more information on a particular object/class, you can pass</span>\n", |
| 280 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> that into </span><span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">matterhelp()</span><span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> as well.</span>\n", |
| 281 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> </span>\n", |
| 282 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"> </span>\n", |
| 283 | "</pre>\n" |
| 284 | ], |
| 285 | "text/plain": [ |
| 286 | "\n", |
| 287 | " \n", |
| 288 | "\u001b[1;34m \u001b[0m\n", |
| 289 | "\u001b[1;34m Welcome to the Matter Python REPL!\u001b[0m\n", |
| 290 | "\u001b[1;34m \u001b[0m\n", |
| 291 | "\u001b[1;34m For help, please type \u001b[0m\u001b[1;32mmatterhelp\u001b[0m\u001b[1;32m(\u001b[0m\u001b[1;32m)\u001b[0m\n", |
| 292 | "\u001b[1;34m \u001b[0m\n", |
| 293 | "\u001b[1;34m To get more information on a particular object/class, you can pass\u001b[0m\n", |
| 294 | "\u001b[1;34m that into \u001b[0m\u001b[1;32mmatterhelp\u001b[0m\u001b[1;32m(\u001b[0m\u001b[1;32m)\u001b[0m\u001b[1;34m as well.\u001b[0m\n", |
| 295 | "\u001b[1;34m \u001b[0m\n", |
| 296 | "\u001b[1;34m \u001b[0m\n" |
| 297 | ] |
| 298 | }, |
| 299 | "metadata": {}, |
| 300 | "output_type": "display_data" |
| 301 | }, |
| 302 | { |
| 303 | "data": { |
| 304 | "text/html": [ |
| 305 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #00ff00; text-decoration-color: #00ff00\">─────────────────────────────────────────────────────────────────────────────────────────────</span>\n", |
| 306 | "</pre>\n" |
| 307 | ], |
| 308 | "text/plain": [ |
| 309 | "\u001b[92m─────────────────────────────────────────────────────────────────────────────────────────────\u001b[0m\n" |
| 310 | ] |
| 311 | }, |
| 312 | "metadata": {}, |
| 313 | "output_type": "display_data" |
| 314 | }, |
| 315 | { |
| 316 | "data": { |
| 317 | "text/html": [ |
| 318 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n", |
| 319 | "\n", |
| 320 | "</pre>\n" |
| 321 | ], |
| 322 | "text/plain": [ |
| 323 | "\n", |
| 324 | "\n" |
| 325 | ] |
| 326 | }, |
| 327 | "metadata": {}, |
| 328 | "output_type": "display_data" |
| 329 | }, |
| 330 | { |
| 331 | "data": { |
| 332 | "text/html": [ |
| 333 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #af00ff; text-decoration-color: #af00ff\">Restoring FabricAdmin from storage to manage FabricId </span><span style=\"color: #af00ff; text-decoration-color: #af00ff; font-weight: bold\">1</span><span style=\"color: #af00ff; text-decoration-color: #af00ff\">, FabricIndex </span><span style=\"color: #af00ff; text-decoration-color: #af00ff; font-weight: bold\">1</span><span style=\"color: #af00ff; text-decoration-color: #af00ff\">...</span>\n", |
| 334 | "</pre>\n" |
| 335 | ], |
| 336 | "text/plain": [ |
| 337 | "\u001b[38;5;129mRestoring FabricAdmin from storage to manage FabricId \u001b[0m\u001b[1;38;5;129m1\u001b[0m\u001b[38;5;129m, FabricIndex \u001b[0m\u001b[1;38;5;129m1\u001b[0m\u001b[38;5;129m...\u001b[0m\n" |
| 338 | ] |
| 339 | }, |
| 340 | "metadata": {}, |
| 341 | "output_type": "display_data" |
| 342 | }, |
| 343 | { |
| 344 | "name": "stdout", |
| 345 | "output_type": "stream", |
| 346 | "text": [ |
| 347 | "New FabricAdmin: FabricId: 1(1)\n" |
| 348 | ] |
| 349 | }, |
| 350 | { |
| 351 | "data": { |
| 352 | "text/html": [ |
| 353 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #af00ff; text-decoration-color: #af00ff\">Restoring FabricAdmin from storage to manage FabricId </span><span style=\"color: #af00ff; text-decoration-color: #af00ff; font-weight: bold\">2</span><span style=\"color: #af00ff; text-decoration-color: #af00ff\">, FabricIndex </span><span style=\"color: #af00ff; text-decoration-color: #af00ff; font-weight: bold\">2</span><span style=\"color: #af00ff; text-decoration-color: #af00ff\">...</span>\n", |
| 354 | "</pre>\n" |
| 355 | ], |
| 356 | "text/plain": [ |
| 357 | "\u001b[38;5;129mRestoring FabricAdmin from storage to manage FabricId \u001b[0m\u001b[1;38;5;129m2\u001b[0m\u001b[38;5;129m, FabricIndex \u001b[0m\u001b[1;38;5;129m2\u001b[0m\u001b[38;5;129m...\u001b[0m\n" |
| 358 | ] |
| 359 | }, |
| 360 | "metadata": {}, |
| 361 | "output_type": "display_data" |
| 362 | }, |
| 363 | { |
| 364 | "name": "stdout", |
| 365 | "output_type": "stream", |
| 366 | "text": [ |
| 367 | "New FabricAdmin: FabricId: 2(2)\n" |
| 368 | ] |
| 369 | }, |
| 370 | { |
| 371 | "data": { |
| 372 | "text/html": [ |
| 373 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n", |
| 374 | "<span style=\"color: #000080; text-decoration-color: #000080\">Fabric Admins have been loaded and are available at </span><span style=\"color: #800000; text-decoration-color: #800000\">fabricAdmins</span>\n", |
| 375 | "</pre>\n" |
| 376 | ], |
| 377 | "text/plain": [ |
| 378 | "\n", |
| 379 | "\u001b[34mFabric Admins have been loaded and are available at \u001b[0m\u001b[31mfabricAdmins\u001b[0m\n" |
| 380 | ] |
| 381 | }, |
| 382 | "metadata": {}, |
| 383 | "output_type": "display_data" |
| 384 | }, |
| 385 | { |
| 386 | "data": { |
| 387 | "text/html": [ |
| 388 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n", |
| 389 | "\n", |
| 390 | "</pre>\n" |
| 391 | ], |
| 392 | "text/plain": [ |
| 393 | "\n", |
| 394 | "\n" |
| 395 | ] |
| 396 | }, |
| 397 | "metadata": {}, |
| 398 | "output_type": "display_data" |
| 399 | }, |
| 400 | { |
| 401 | "data": { |
| 402 | "text/html": [ |
| 403 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #af00ff; text-decoration-color: #af00ff\">Creating default device controller on fabric </span><span style=\"color: #af00ff; text-decoration-color: #af00ff; font-weight: bold\">1</span><span style=\"color: #af00ff; text-decoration-color: #af00ff\">...</span>\n", |
| 404 | "</pre>\n" |
| 405 | ], |
| 406 | "text/plain": [ |
| 407 | "\u001b[38;5;129mCreating default device controller on fabric \u001b[0m\u001b[1;38;5;129m1\u001b[0m\u001b[38;5;129m...\u001b[0m\n" |
| 408 | ] |
| 409 | }, |
| 410 | "metadata": {}, |
| 411 | "output_type": "display_data" |
| 412 | }, |
| 413 | { |
| 414 | "name": "stdout", |
| 415 | "output_type": "stream", |
| 416 | "text": [ |
| 417 | "Allocating new controller with FabricId: 1(1), NodeId: 1\n" |
| 418 | ] |
| 419 | }, |
| 420 | { |
| 421 | "data": { |
| 422 | "text/html": [ |
| 423 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n", |
| 424 | "\n", |
| 425 | "<span style=\"color: #000080; text-decoration-color: #000080\">Default CHIP Device Controller has been initialized to manage </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">fabricAdmins[</span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">0</span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">]</span><span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\">, and is </span>\n", |
| 426 | "<span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\">available as </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">devCtrl</span>\n", |
| 427 | "</pre>\n" |
| 428 | ], |
| 429 | "text/plain": [ |
| 430 | "\n", |
| 431 | "\n", |
| 432 | "\u001b[34mDefault CHIP Device Controller has been initialized to manage \u001b[0m\u001b[1;31mfabricAdmins\u001b[0m\u001b[1;31m[\u001b[0m\u001b[1;31m0\u001b[0m\u001b[1;31m]\u001b[0m\u001b[1;34m, and is \u001b[0m\n", |
| 433 | "\u001b[1;34mavailable as \u001b[0m\u001b[1;31mdevCtrl\u001b[0m\n" |
| 434 | ] |
| 435 | }, |
| 436 | "metadata": {}, |
| 437 | "output_type": "display_data" |
| 438 | } |
| 439 | ], |
| 440 | "source": [ |
| 441 | "import chip.native\n", |
| 442 | "import pkgutil\n", |
| 443 | "module = pkgutil.get_loader('chip.ChipReplStartup')\n", |
| 444 | "%run {module.path} --storagepath /tmp/repl.json" |
| 445 | ] |
| 446 | }, |
| 447 | { |
| 448 | "cell_type": "markdown", |
| 449 | "id": "04152051-9b58-4a12-a92c-a01db33e38ad", |
| 450 | "metadata": {}, |
| 451 | "source": [ |
| 452 | "## Help\n", |
| 453 | "\n", |
| 454 | "To get help for the various classes and their respective methods, run:" |
| 455 | ] |
| 456 | }, |
| 457 | { |
| 458 | "cell_type": "code", |
| 459 | "execution_count": 3, |
| 460 | "id": "b36f41dd-d5e2-447e-a9a4-f1eab7d92bec", |
| 461 | "metadata": { |
| 462 | "scrolled": true, |
| 463 | "tags": [] |
| 464 | }, |
| 465 | "outputs": [ |
| 466 | { |
| 467 | "data": { |
| 468 | "text/html": [ |
| 469 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #000080; text-decoration-color: #000080\">╭─────────────────── </span><span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"><</span><span style=\"color: #ff00ff; text-decoration-color: #ff00ff; font-weight: bold\">class</span><span style=\"color: #000000; text-decoration-color: #000000\"> </span><span style=\"color: #008000; text-decoration-color: #008000\">'chip.ChipDeviceCtrl.ChipDeviceController'</span><span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\">></span><span style=\"color: #000080; text-decoration-color: #000080\"> ────────────────────╮</span>\n", |
| 470 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008000; text-decoration-color: #008000\">╭───────────────────────────────────────────────────────────────────────────────────────╮</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 471 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"font-weight: bold\"><</span><span style=\"color: #ff00ff; text-decoration-color: #ff00ff; font-weight: bold\">chip.ChipDeviceCtrl.ChipDeviceController</span><span style=\"color: #000000; text-decoration-color: #000000\"> object at </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0x1143b3910</span><span style=\"font-weight: bold\">></span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 472 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008000; text-decoration-color: #008000\">╰───────────────────────────────────────────────────────────────────────────────────────╯</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 473 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 474 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">activeList</span> = <span style=\"font-weight: bold\">{</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 475 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"font-weight: bold\"><</span><span style=\"color: #ff00ff; text-decoration-color: #ff00ff; font-weight: bold\">chip.ChipDeviceCtrl.ChipDeviceController</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 476 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000000; text-decoration-color: #000000\">object at </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0x1143b3910</span><span style=\"font-weight: bold\">></span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 477 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"font-weight: bold\">}</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 478 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">devCtrl</span> = <span style=\"color: #800080; text-decoration-color: #800080; font-weight: bold\">c_void_p</span><span style=\"font-weight: bold\">(</span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">140320379576320</span><span style=\"font-weight: bold\">)</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 479 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">isActive</span> = <span style=\"color: #00ff00; text-decoration-color: #00ff00; font-style: italic\">True</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 480 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">state</span> = <span style=\"font-weight: bold\"><</span><span style=\"color: #ff00ff; text-decoration-color: #ff00ff; font-weight: bold\">DCState.IDLE:</span><span style=\"color: #000000; text-decoration-color: #000000\"> </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">1</span><span style=\"font-weight: bold\">></span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 481 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">cbHandleCommissioningCompleteFunct</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">cbHandleCommissioningCompleteFunct</span><span style=\"font-weight: bold\">(</span><span style=\"color: #808000; text-decoration-color: #808000\">...</span><span style=\"font-weight: bold\">)</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 482 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">cbHandleKeyExchangeCompleteFunct</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">cbHandleKeyExchangeCompleteFunct</span><span style=\"font-weight: bold\">(</span><span style=\"color: #808000; text-decoration-color: #808000\">...</span><span style=\"font-weight: bold\">)</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 483 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">cbOnAddressUpdateComplete</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">cbOnAddressUpdateComplete</span><span style=\"font-weight: bold\">(</span><span style=\"color: #808000; text-decoration-color: #808000\">...</span><span style=\"font-weight: bold\">)</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 484 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">CheckIsActive</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">CheckIsActive</span><span style=\"font-weight: bold\">()</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 485 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">CloseBLEConnection</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">CloseBLEConnection</span><span style=\"font-weight: bold\">()</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 486 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">CloseSession</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">CloseSession</span><span style=\"font-weight: bold\">(</span>nodeid<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 487 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">Commission</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">Commission</span><span style=\"font-weight: bold\">(</span>nodeid<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 488 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">CommissionIP</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">CommissionIP</span><span style=\"font-weight: bold\">(</span>ipaddr, setupPinCode, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 489 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> nodeid<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 490 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">ConnectBLE</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">ConnectBLE</span><span style=\"font-weight: bold\">(</span>discriminator, setupPinCode, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 491 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> nodeid<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 492 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">ConnectBle</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">ConnectBle</span><span style=\"font-weight: bold\">(</span>bleConnection<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 493 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">DiscoverAllCommissioning</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">DiscoverAllCommissioning</span><span style=\"font-weight: bold\">()</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 494 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">DiscoverCommissionableNodesCommissioningEn…</span> <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 495 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> = <span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">DiscoverCommissionableNodesCommissioningEnab…</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 496 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">DiscoverCommissionableNodesDeviceType</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 497 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">DiscoverCommissionableNodesDeviceType</span><span style=\"font-weight: bold\">(</span>device… <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 498 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">DiscoverCommissionableNodesLongDiscriminat…</span> <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 499 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> = <span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">DiscoverCommissionableNodesLongDiscriminator</span><span style=\"font-weight: bold\">…</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 500 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">DiscoverCommissionableNodesShortDiscrimina…</span> <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 501 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> = <span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">DiscoverCommissionableNodesShortDiscriminato…</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 502 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">DiscoverCommissionableNodesVendor</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 503 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">DiscoverCommissionableNodesVendor</span><span style=\"font-weight: bold\">(</span>vendor<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 504 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">EstablishPASESessionIP</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">EstablishPASESessionIP</span><span style=\"font-weight: bold\">(</span>ipaddr, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 505 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> setupPinCode, nodeid<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 506 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">GetAddressAndPort</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">GetAddressAndPort</span><span style=\"font-weight: bold\">(</span>nodeid<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 507 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">GetClusterHandler</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">GetClusterHandler</span><span style=\"font-weight: bold\">()</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 508 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">GetCompressedFabricId</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">GetCompressedFabricId</span><span style=\"font-weight: bold\">()</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 509 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">GetConnectedDeviceSync</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">GetConnectedDeviceSync</span><span style=\"font-weight: bold\">(</span>nodeid<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 510 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">GetFabricId</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">GetFabricId</span><span style=\"font-weight: bold\">()</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 511 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">GetIPForDiscoveredDevice</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">GetIPForDiscoveredDevice</span><span style=\"font-weight: bold\">(</span>idx, addrStr, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 512 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> length<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 513 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">GetLogFilter</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">GetLogFilter</span><span style=\"font-weight: bold\">()</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 514 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">IsConnected</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">IsConnected</span><span style=\"font-weight: bold\">()</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 515 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">OpenCommissioningWindow</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">OpenCommissioningWindow</span><span style=\"font-weight: bold\">(</span>nodeid, timeout, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 516 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> iteration, discriminator, option<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 517 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">ParseQRCode</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">ParseQRCode</span><span style=\"font-weight: bold\">(</span>qrCode, output<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 518 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">PrintDiscoveredDevices</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">PrintDiscoveredDevices</span><span style=\"font-weight: bold\">()</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 519 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">ReadAttribute</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">ReadAttribute</span><span style=\"font-weight: bold\">(</span>nodeid: int, attributes: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 520 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> List<span style=\"font-weight: bold\">[</span>Union<span style=\"font-weight: bold\">[</span>NoneType, Tuple<span style=\"font-weight: bold\">[</span>int<span style=\"font-weight: bold\">]</span>, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 521 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> Tuple<span style=\"font-weight: bold\">[</span>Type<span style=\"font-weight: bold\">[</span>chip.clusters.ClusterObjects.Clus… <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 522 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> Tuple<span style=\"font-weight: bold\">[</span>Type<span style=\"font-weight: bold\">[</span>chip.clusters.ClusterObjects.Clus… <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 523 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> Tuple<span style=\"font-weight: bold\">[</span>int, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 524 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> Type<span style=\"font-weight: bold\">[</span>chip.clusters.ClusterObjects.Cluster<span style=\"font-weight: bold\">]]</span>, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 525 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> Tuple<span style=\"font-weight: bold\">[</span>int, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 526 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> Type<span style=\"font-weight: bold\">[</span>chip.clusters.ClusterObjects.ClusterAtt… <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 527 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> returnClusterObject: bool = <span style=\"color: #ff0000; text-decoration-color: #ff0000; font-style: italic\">False</span>, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 528 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> reportInterval: Tuple<span style=\"font-weight: bold\">[</span>int, int<span style=\"font-weight: bold\">]</span> = <span style=\"color: #800080; text-decoration-color: #800080; font-style: italic\">None</span>, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 529 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> fabricFiltered: bool = <span style=\"color: #00ff00; text-decoration-color: #00ff00; font-style: italic\">True</span><span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 530 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Read a list of attributes from a target node</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 531 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 532 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">nodeId: Target's Node ID</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 533 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">attributes: A list of tuples of varying types</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 534 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">depending on the type of read being </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 535 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">requested:</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 536 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">endpoint, Clusters.ClusterA.AttributeA</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">)</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">:</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 537 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Endpoint = specific, Cluster = specific, </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 538 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Attribute = specific</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 539 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">endpoint, Clusters.ClusterA</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">)</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">: </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 540 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Endpoint = specific, Cluster = specific, </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 541 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Attribute = *</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 542 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Clusters.ClusterA.AttributeA</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">)</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">: </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 543 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Endpoint = *, Cluster = specific, </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 544 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Attribute = specific</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 545 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> endpoint: </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 546 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Endpoint = specific, Cluster = *, </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 547 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Attribute = *</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 548 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> Clusters.ClusterA: </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 549 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Endpoint = *, Cluster = specific, </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 550 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Attribute = *</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 551 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7fbf7f; text-decoration-color: #7fbf7f\">'*'</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> or </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">()</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">: </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 552 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Endpoint = *, Cluster = *, </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 553 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Attribute = *</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 554 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 555 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> The cluster and attributes specified </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 556 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">above are to be selected from the generated </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 557 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">cluster objects.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 558 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 559 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> e.g.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 560 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #bf7fbf; text-decoration-color: #bf7fbf; font-weight: bold\">ReadAttribute</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">1</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">, </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">[</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">1</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">]</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">)</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> -- case </span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">4</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 561 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">above.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 562 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #bf7fbf; text-decoration-color: #bf7fbf; font-weight: bold\">ReadAttribute</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">1</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">, </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">[</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> Clusters.Basic </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">]</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">)</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 563 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">-- case </span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">5</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> above.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 564 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #bf7fbf; text-decoration-color: #bf7fbf; font-weight: bold\">ReadAttribute</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">1</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">, </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">[</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">1</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">, </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 565 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Clusters.Basic.Attributes.Location </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">]</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">)</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> -- </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 566 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">case </span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">1</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> above.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 567 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 568 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">returnClusterObject: This returns the data as</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 569 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">consolidated cluster objects, with all </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 570 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">attributes for a cluster inside</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 571 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> a single cluster-wide </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 572 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">cluster object.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 573 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 574 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">reportInterval: A tuple of two int-s for </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 575 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">MinIntervalFloor, MaxIntervalCeiling</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">)</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">. Used </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 576 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">by establishing subscriptions.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 577 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> When not provided, a read request will be</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 578 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">sent.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 579 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">ReadEvent</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">ReadEvent</span><span style=\"font-weight: bold\">(</span>nodeid: int, events: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 580 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> List<span style=\"font-weight: bold\">[</span>Union<span style=\"font-weight: bold\">[</span>NoneType, Tuple<span style=\"font-weight: bold\">[</span>int<span style=\"font-weight: bold\">]</span>, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 581 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> Tuple<span style=\"font-weight: bold\">[</span>Type<span style=\"font-weight: bold\">[</span>chip.clusters.ClusterObjects.Clus… <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 582 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> Tuple<span style=\"font-weight: bold\">[</span>Type<span style=\"font-weight: bold\">[</span>chip.clusters.ClusterObjects.Clus… <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 583 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> Tuple<span style=\"font-weight: bold\">[</span>int, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 584 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> Type<span style=\"font-weight: bold\">[</span>chip.clusters.ClusterObjects.Cluster<span style=\"font-weight: bold\">]]</span>, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 585 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> Tuple<span style=\"font-weight: bold\">[</span>int, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 586 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> Type<span style=\"font-weight: bold\">[</span>chip.clusters.ClusterObjects.ClusterEve… <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 587 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> reportInterval: Tuple<span style=\"font-weight: bold\">[</span>int, int<span style=\"font-weight: bold\">]</span> = <span style=\"color: #800080; text-decoration-color: #800080; font-style: italic\">None</span><span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 588 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Read a list of events from a target node</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 589 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 590 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">nodeId: Target's Node ID</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 591 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">events: A list of tuples of varying types </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 592 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">depending on the type of read being </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 593 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">requested:</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 594 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">endpoint, Clusters.ClusterA.EventA</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">)</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">: </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 595 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Endpoint = specific, Cluster = specific, </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 596 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Event = specific</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 597 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">endpoint, Clusters.ClusterA</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">)</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">: </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 598 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Endpoint = specific, Cluster = specific, </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 599 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Event = *</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 600 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Clusters.ClusterA.EventA</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">)</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">: </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 601 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Endpoint = *, Cluster = specific, </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 602 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Event = specific</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 603 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> endpoint: </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 604 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Endpoint = specific, Cluster = *, </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 605 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Event = *</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 606 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> Clusters.ClusterA: </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 607 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Endpoint = *, Cluster = specific, </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 608 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Event = *</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 609 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7fbf7f; text-decoration-color: #7fbf7f\">'*'</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> or </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">()</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">: </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 610 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Endpoint = *, Cluster = *, </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 611 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Event = *</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 612 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 613 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">The cluster and events specified above are to</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 614 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">be selected from the generated cluster </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 615 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">objects.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 616 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 617 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">e.g.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 618 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #bf7fbf; text-decoration-color: #bf7fbf; font-weight: bold\">ReadEvent</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">1</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">, </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">[</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">1</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">]</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">)</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> -- case </span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">4</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> above.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 619 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #bf7fbf; text-decoration-color: #bf7fbf; font-weight: bold\">ReadEvent</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">1</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">, </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">[</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> Clusters.Basic </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">]</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">)</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> -- case</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 620 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">5</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> above.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 621 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #bf7fbf; text-decoration-color: #bf7fbf; font-weight: bold\">ReadEvent</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">1</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">, </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">[</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">1</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">, </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 622 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Clusters.Basic.Events.Location </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">]</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">)</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> -- case </span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">1</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 623 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">above.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 624 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 625 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">reportInterval: A tuple of two int-s for </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 626 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">MinIntervalFloor, MaxIntervalCeiling</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">)</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">. Used </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 627 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">by establishing subscriptions.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 628 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> When not provided, a read request will be</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 629 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">sent.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 630 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">ResolveNode</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">ResolveNode</span><span style=\"font-weight: bold\">(</span>nodeid<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 631 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">SendCommand</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">SendCommand</span><span style=\"font-weight: bold\">(</span>nodeid: int, endpoint: int, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 632 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> payload: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 633 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> chip.clusters.ClusterObjects.ClusterCommand, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 634 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000\">responseType</span>=<span style=\"color: #800080; text-decoration-color: #800080; font-style: italic\">None</span>, timedRequestTimeoutMs: int <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 635 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> = <span style=\"color: #800080; text-decoration-color: #800080; font-style: italic\">None</span><span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 636 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Send a cluster-object encapsulated command to</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 637 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">a node and get returned a future that can be </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 638 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">awaited upon to receive the response.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 639 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">If a valid responseType is passed in, that </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 640 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">will be used to deserialize the object. If </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 641 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">not, the type will be automatically deduced</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 642 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">from the metadata received over the wire.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 643 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 644 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">timedWriteTimeoutMs: Timeout for a timed </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 645 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">invoke request. Omit or set to </span><span style=\"color: #7fbf7f; text-decoration-color: #7fbf7f\">'None'</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> to </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 646 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">indicate a non-timed request.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 647 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">SetBlockingCB</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">SetBlockingCB</span><span style=\"font-weight: bold\">(</span>blockingCB<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 648 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">SetLogFilter</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">SetLogFilter</span><span style=\"font-weight: bold\">(</span>category<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 649 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">SetThreadOperationalDataset</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 650 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">SetThreadOperationalDataset</span><span style=\"font-weight: bold\">(</span>threadOperationa… <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 651 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">SetWiFiCredentials</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">SetWiFiCredentials</span><span style=\"font-weight: bold\">(</span>ssid, credentials<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 652 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">Shutdown</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">Shutdown</span><span style=\"font-weight: bold\">()</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 653 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Shuts down this controller and reclaims any </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 654 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">used resources, including the bound</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 655 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">C++ constructor instance in the SDK.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 656 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">ShutdownAll</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">ShutdownAll</span><span style=\"font-weight: bold\">(</span><span style=\"color: #808000; text-decoration-color: #808000\">...</span><span style=\"font-weight: bold\">)</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Shut down all active </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 657 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">controllers and reclaim any used resources.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 658 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">WriteAttribute</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">WriteAttribute</span><span style=\"font-weight: bold\">(</span>nodeid: int, attributes: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 659 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> List<span style=\"font-weight: bold\">[</span>Tuple<span style=\"font-weight: bold\">[</span>int, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 660 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> chip.clusters.ClusterObjects.ClusterAttribut… <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 661 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> timedRequestTimeoutMs: int = <span style=\"color: #800080; text-decoration-color: #800080; font-style: italic\">None</span><span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 662 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">Write a list of attributes on a target node.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 663 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 664 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">nodeId: Target's Node ID</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 665 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">timedWriteTimeoutMs: Timeout for a timed </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 666 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">write request. Omit or set to </span><span style=\"color: #7fbf7f; text-decoration-color: #7fbf7f\">'None'</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> to </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 667 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">indicate a non-timed request.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 668 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">attributes: A list of tuples of type </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 669 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">endpoint, cluster-object</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">)</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">:</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 670 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 671 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">E.g</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 672 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> </span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">(</span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">1</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">, </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
Andrei Litvin | cf32330 | 2022-11-15 15:00:44 +0100 | [diff] [blame] | 673 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #bf7fbf; text-decoration-color: #bf7fbf; font-weight: bold\">Clusters.UnitTesting.Attributes.XYZAttribute</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f; font-weight: bold\">…</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
Jerry Johns | f68cd64 | 2022-01-28 16:39:08 -0800 | [diff] [blame] | 674 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">-- Write </span><span style=\"color: #7fbf7f; text-decoration-color: #7fbf7f\">'hello'</span><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\"> to the XYZ attribute on the </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 675 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">test cluster to endpoint </span><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf; font-weight: bold\">1</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 676 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">ZCLAttributeList</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">ZCLAttributeList</span><span style=\"font-weight: bold\">()</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 677 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">ZCLCommandList</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">ZCLCommandList</span><span style=\"font-weight: bold\">()</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 678 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">ZCLReadAttribute</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">ZCLReadAttribute</span><span style=\"font-weight: bold\">(</span>cluster, attribute, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 679 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> nodeid, endpoint, groupid, <span style=\"color: #808000; text-decoration-color: #808000\">blocking</span>=<span style=\"color: #00ff00; text-decoration-color: #00ff00; font-style: italic\">True</span><span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 680 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">ZCLSend</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">ZCLSend</span><span style=\"font-weight: bold\">(</span>cluster, command, nodeid, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 681 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> endpoint, groupid, args, <span style=\"color: #808000; text-decoration-color: #808000\">blocking</span>=<span style=\"color: #ff0000; text-decoration-color: #ff0000; font-style: italic\">False</span><span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 682 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">ZCLSubscribeAttribute</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">ZCLSubscribeAttribute</span><span style=\"font-weight: bold\">(</span>cluster, attribute, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 683 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> nodeid, endpoint, minInterval, maxInterval, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 684 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000\">blocking</span>=<span style=\"color: #00ff00; text-decoration-color: #00ff00; font-style: italic\">True</span><span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 685 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #808000; text-decoration-color: #808000; font-style: italic\">ZCLWriteAttribute</span> = <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">ZCLWriteAttribute</span><span style=\"font-weight: bold\">(</span>cluster: str, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 686 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> attribute: str, nodeid, endpoint, groupid, <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 687 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> value, <span style=\"color: #808000; text-decoration-color: #808000\">blocking</span>=<span style=\"color: #00ff00; text-decoration-color: #00ff00; font-style: italic\">True</span><span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 688 | "<span style=\"color: #000080; text-decoration-color: #000080\">╰───────────────────────────────────────────────────────────────────────────────────────────╯</span>\n", |
| 689 | "</pre>\n" |
| 690 | ], |
| 691 | "text/plain": [ |
| 692 | "\u001b[34m╭─\u001b[0m\u001b[34m────────────────── \u001b[0m\u001b[1;34m<\u001b[0m\u001b[1;95mclass\u001b[0m\u001b[39m \u001b[0m\u001b[32m'chip.ChipDeviceCtrl.ChipDeviceController'\u001b[0m\u001b[1;34m>\u001b[0m\u001b[34m ───────────────────\u001b[0m\u001b[34m─╮\u001b[0m\n", |
| 693 | "\u001b[34m│\u001b[0m \u001b[32m╭───────────────────────────────────────────────────────────────────────────────────────╮\u001b[0m \u001b[34m│\u001b[0m\n", |
| 694 | "\u001b[34m│\u001b[0m \u001b[32m│\u001b[0m \u001b[1m<\u001b[0m\u001b[1;95mchip.ChipDeviceCtrl.ChipDeviceController\u001b[0m\u001b[39m object at \u001b[0m\u001b[1;36m0x1143b3910\u001b[0m\u001b[1m>\u001b[0m \u001b[32m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 695 | "\u001b[34m│\u001b[0m \u001b[32m╰───────────────────────────────────────────────────────────────────────────────────────╯\u001b[0m \u001b[34m│\u001b[0m\n", |
| 696 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 697 | "\u001b[34m│\u001b[0m \u001b[3;33mactiveList\u001b[0m = \u001b[1m{\u001b[0m \u001b[34m│\u001b[0m\n", |
| 698 | "\u001b[34m│\u001b[0m \u001b[1m<\u001b[0m\u001b[1;95mchip.ChipDeviceCtrl.ChipDeviceController\u001b[0m \u001b[34m│\u001b[0m\n", |
| 699 | "\u001b[34m│\u001b[0m \u001b[39mobject at \u001b[0m\u001b[1;36m0x1143b3910\u001b[0m\u001b[1m>\u001b[0m \u001b[34m│\u001b[0m\n", |
| 700 | "\u001b[34m│\u001b[0m \u001b[1m}\u001b[0m \u001b[34m│\u001b[0m\n", |
| 701 | "\u001b[34m│\u001b[0m \u001b[3;33mdevCtrl\u001b[0m = \u001b[1;35mc_void_p\u001b[0m\u001b[1m(\u001b[0m\u001b[1;36m140320379576320\u001b[0m\u001b[1m)\u001b[0m \u001b[34m│\u001b[0m\n", |
| 702 | "\u001b[34m│\u001b[0m \u001b[3;33misActive\u001b[0m = \u001b[3;92mTrue\u001b[0m \u001b[34m│\u001b[0m\n", |
| 703 | "\u001b[34m│\u001b[0m \u001b[3;33mstate\u001b[0m = \u001b[1m<\u001b[0m\u001b[1;95mDCState.IDLE:\u001b[0m\u001b[39m \u001b[0m\u001b[1;36m1\u001b[0m\u001b[1m>\u001b[0m \u001b[34m│\u001b[0m\n", |
| 704 | "\u001b[34m│\u001b[0m \u001b[3;33mcbHandleCommissioningCompleteFunct\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mcbHandleCommissioningCompleteFunct\u001b[0m\u001b[1m(\u001b[0m\u001b[33m...\u001b[0m\u001b[1m)\u001b[0m \u001b[34m│\u001b[0m\n", |
| 705 | "\u001b[34m│\u001b[0m \u001b[3;33mcbHandleKeyExchangeCompleteFunct\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mcbHandleKeyExchangeCompleteFunct\u001b[0m\u001b[1m(\u001b[0m\u001b[33m...\u001b[0m\u001b[1m)\u001b[0m \u001b[34m│\u001b[0m\n", |
| 706 | "\u001b[34m│\u001b[0m \u001b[3;33mcbOnAddressUpdateComplete\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mcbOnAddressUpdateComplete\u001b[0m\u001b[1m(\u001b[0m\u001b[33m...\u001b[0m\u001b[1m)\u001b[0m \u001b[34m│\u001b[0m\n", |
| 707 | "\u001b[34m│\u001b[0m \u001b[3;33mCheckIsActive\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mCheckIsActive\u001b[0m\u001b[1m(\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 708 | "\u001b[34m│\u001b[0m \u001b[3;33mCloseBLEConnection\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mCloseBLEConnection\u001b[0m\u001b[1m(\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 709 | "\u001b[34m│\u001b[0m \u001b[3;33mCloseSession\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mCloseSession\u001b[0m\u001b[1m(\u001b[0mnodeid\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 710 | "\u001b[34m│\u001b[0m \u001b[3;33mCommission\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mCommission\u001b[0m\u001b[1m(\u001b[0mnodeid\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 711 | "\u001b[34m│\u001b[0m \u001b[3;33mCommissionIP\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mCommissionIP\u001b[0m\u001b[1m(\u001b[0mipaddr, setupPinCode, \u001b[34m│\u001b[0m\n", |
| 712 | "\u001b[34m│\u001b[0m nodeid\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 713 | "\u001b[34m│\u001b[0m \u001b[3;33mConnectBLE\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mConnectBLE\u001b[0m\u001b[1m(\u001b[0mdiscriminator, setupPinCode, \u001b[34m│\u001b[0m\n", |
| 714 | "\u001b[34m│\u001b[0m nodeid\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 715 | "\u001b[34m│\u001b[0m \u001b[3;33mConnectBle\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mConnectBle\u001b[0m\u001b[1m(\u001b[0mbleConnection\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 716 | "\u001b[34m│\u001b[0m \u001b[3;33mDiscoverAllCommissioning\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mDiscoverAllCommissioning\u001b[0m\u001b[1m(\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 717 | "\u001b[34m│\u001b[0m \u001b[3;33mDiscoverCommissionableNodesCommissioningEn…\u001b[0m \u001b[3;96mdef \u001b[0m \u001b[34m│\u001b[0m\n", |
| 718 | "\u001b[34m│\u001b[0m = \u001b[1;31mDiscoverCommissionableNodesCommissioningEnab…\u001b[0m \u001b[34m│\u001b[0m\n", |
| 719 | "\u001b[34m│\u001b[0m \u001b[3;33mDiscoverCommissionableNodesDeviceType\u001b[0m = \u001b[3;96mdef \u001b[0m \u001b[34m│\u001b[0m\n", |
| 720 | "\u001b[34m│\u001b[0m \u001b[1;31mDiscoverCommissionableNodesDeviceType\u001b[0m\u001b[1m(\u001b[0mdevice… \u001b[34m│\u001b[0m\n", |
| 721 | "\u001b[34m│\u001b[0m \u001b[3;33mDiscoverCommissionableNodesLongDiscriminat…\u001b[0m \u001b[3;96mdef \u001b[0m \u001b[34m│\u001b[0m\n", |
| 722 | "\u001b[34m│\u001b[0m = \u001b[1;31mDiscoverCommissionableNodesLongDiscriminator\u001b[0m\u001b[1m…\u001b[0m \u001b[34m│\u001b[0m\n", |
| 723 | "\u001b[34m│\u001b[0m \u001b[3;33mDiscoverCommissionableNodesShortDiscrimina…\u001b[0m \u001b[3;96mdef \u001b[0m \u001b[34m│\u001b[0m\n", |
| 724 | "\u001b[34m│\u001b[0m = \u001b[1;31mDiscoverCommissionableNodesShortDiscriminato…\u001b[0m \u001b[34m│\u001b[0m\n", |
| 725 | "\u001b[34m│\u001b[0m \u001b[3;33mDiscoverCommissionableNodesVendor\u001b[0m = \u001b[3;96mdef \u001b[0m \u001b[34m│\u001b[0m\n", |
| 726 | "\u001b[34m│\u001b[0m \u001b[1;31mDiscoverCommissionableNodesVendor\u001b[0m\u001b[1m(\u001b[0mvendor\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 727 | "\u001b[34m│\u001b[0m \u001b[3;33mEstablishPASESessionIP\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mEstablishPASESessionIP\u001b[0m\u001b[1m(\u001b[0mipaddr, \u001b[34m│\u001b[0m\n", |
| 728 | "\u001b[34m│\u001b[0m setupPinCode, nodeid\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 729 | "\u001b[34m│\u001b[0m \u001b[3;33mGetAddressAndPort\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mGetAddressAndPort\u001b[0m\u001b[1m(\u001b[0mnodeid\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 730 | "\u001b[34m│\u001b[0m \u001b[3;33mGetClusterHandler\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mGetClusterHandler\u001b[0m\u001b[1m(\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 731 | "\u001b[34m│\u001b[0m \u001b[3;33mGetCompressedFabricId\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mGetCompressedFabricId\u001b[0m\u001b[1m(\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 732 | "\u001b[34m│\u001b[0m \u001b[3;33mGetConnectedDeviceSync\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mGetConnectedDeviceSync\u001b[0m\u001b[1m(\u001b[0mnodeid\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 733 | "\u001b[34m│\u001b[0m \u001b[3;33mGetFabricId\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mGetFabricId\u001b[0m\u001b[1m(\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 734 | "\u001b[34m│\u001b[0m \u001b[3;33mGetIPForDiscoveredDevice\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mGetIPForDiscoveredDevice\u001b[0m\u001b[1m(\u001b[0midx, addrStr, \u001b[34m│\u001b[0m\n", |
| 735 | "\u001b[34m│\u001b[0m length\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 736 | "\u001b[34m│\u001b[0m \u001b[3;33mGetLogFilter\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mGetLogFilter\u001b[0m\u001b[1m(\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 737 | "\u001b[34m│\u001b[0m \u001b[3;33mIsConnected\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mIsConnected\u001b[0m\u001b[1m(\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 738 | "\u001b[34m│\u001b[0m \u001b[3;33mOpenCommissioningWindow\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mOpenCommissioningWindow\u001b[0m\u001b[1m(\u001b[0mnodeid, timeout, \u001b[34m│\u001b[0m\n", |
| 739 | "\u001b[34m│\u001b[0m iteration, discriminator, option\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 740 | "\u001b[34m│\u001b[0m \u001b[3;33mParseQRCode\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mParseQRCode\u001b[0m\u001b[1m(\u001b[0mqrCode, output\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 741 | "\u001b[34m│\u001b[0m \u001b[3;33mPrintDiscoveredDevices\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mPrintDiscoveredDevices\u001b[0m\u001b[1m(\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 742 | "\u001b[34m│\u001b[0m \u001b[3;33mReadAttribute\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mReadAttribute\u001b[0m\u001b[1m(\u001b[0mnodeid: int, attributes: \u001b[34m│\u001b[0m\n", |
| 743 | "\u001b[34m│\u001b[0m List\u001b[1m[\u001b[0mUnion\u001b[1m[\u001b[0mNoneType, Tuple\u001b[1m[\u001b[0mint\u001b[1m]\u001b[0m, \u001b[34m│\u001b[0m\n", |
| 744 | "\u001b[34m│\u001b[0m Tuple\u001b[1m[\u001b[0mType\u001b[1m[\u001b[0mchip.clusters.ClusterObjects.Clus… \u001b[34m│\u001b[0m\n", |
| 745 | "\u001b[34m│\u001b[0m Tuple\u001b[1m[\u001b[0mType\u001b[1m[\u001b[0mchip.clusters.ClusterObjects.Clus… \u001b[34m│\u001b[0m\n", |
| 746 | "\u001b[34m│\u001b[0m Tuple\u001b[1m[\u001b[0mint, \u001b[34m│\u001b[0m\n", |
| 747 | "\u001b[34m│\u001b[0m Type\u001b[1m[\u001b[0mchip.clusters.ClusterObjects.Cluster\u001b[1m]\u001b[0m\u001b[1m]\u001b[0m, \u001b[34m│\u001b[0m\n", |
| 748 | "\u001b[34m│\u001b[0m Tuple\u001b[1m[\u001b[0mint, \u001b[34m│\u001b[0m\n", |
| 749 | "\u001b[34m│\u001b[0m Type\u001b[1m[\u001b[0mchip.clusters.ClusterObjects.ClusterAtt… \u001b[34m│\u001b[0m\n", |
| 750 | "\u001b[34m│\u001b[0m returnClusterObject: bool = \u001b[3;91mFalse\u001b[0m, \u001b[34m│\u001b[0m\n", |
| 751 | "\u001b[34m│\u001b[0m reportInterval: Tuple\u001b[1m[\u001b[0mint, int\u001b[1m]\u001b[0m = \u001b[3;35mNone\u001b[0m, \u001b[34m│\u001b[0m\n", |
| 752 | "\u001b[34m│\u001b[0m fabricFiltered: bool = \u001b[3;92mTrue\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 753 | "\u001b[34m│\u001b[0m \u001b[2mRead a list of attributes from a target node\u001b[0m \u001b[34m│\u001b[0m\n", |
| 754 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 755 | "\u001b[34m│\u001b[0m \u001b[2mnodeId: Target's Node ID\u001b[0m \u001b[34m│\u001b[0m\n", |
| 756 | "\u001b[34m│\u001b[0m \u001b[2mattributes: A list of tuples of varying types\u001b[0m \u001b[34m│\u001b[0m\n", |
| 757 | "\u001b[34m│\u001b[0m \u001b[2mdepending on the type of read being \u001b[0m \u001b[34m│\u001b[0m\n", |
| 758 | "\u001b[34m│\u001b[0m \u001b[2mrequested:\u001b[0m \u001b[34m│\u001b[0m\n", |
| 759 | "\u001b[34m│\u001b[0m \u001b[2m \u001b[0m\u001b[1;2m(\u001b[0m\u001b[2mendpoint, Clusters.ClusterA.AttributeA\u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m:\u001b[0m \u001b[34m│\u001b[0m\n", |
| 760 | "\u001b[34m│\u001b[0m \u001b[2mEndpoint = specific, Cluster = specific, \u001b[0m \u001b[34m│\u001b[0m\n", |
| 761 | "\u001b[34m│\u001b[0m \u001b[2mAttribute = specific\u001b[0m \u001b[34m│\u001b[0m\n", |
| 762 | "\u001b[34m│\u001b[0m \u001b[2m \u001b[0m\u001b[1;2m(\u001b[0m\u001b[2mendpoint, Clusters.ClusterA\u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m: \u001b[0m \u001b[34m│\u001b[0m\n", |
| 763 | "\u001b[34m│\u001b[0m \u001b[2mEndpoint = specific, Cluster = specific, \u001b[0m \u001b[34m│\u001b[0m\n", |
| 764 | "\u001b[34m│\u001b[0m \u001b[2mAttribute = *\u001b[0m \u001b[34m│\u001b[0m\n", |
| 765 | "\u001b[34m│\u001b[0m \u001b[2m \u001b[0m\u001b[1;2m(\u001b[0m\u001b[2mClusters.ClusterA.AttributeA\u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m: \u001b[0m \u001b[34m│\u001b[0m\n", |
| 766 | "\u001b[34m│\u001b[0m \u001b[2mEndpoint = *, Cluster = specific, \u001b[0m \u001b[34m│\u001b[0m\n", |
| 767 | "\u001b[34m│\u001b[0m \u001b[2mAttribute = specific\u001b[0m \u001b[34m│\u001b[0m\n", |
| 768 | "\u001b[34m│\u001b[0m \u001b[2m endpoint: \u001b[0m \u001b[34m│\u001b[0m\n", |
| 769 | "\u001b[34m│\u001b[0m \u001b[2mEndpoint = specific, Cluster = *, \u001b[0m \u001b[34m│\u001b[0m\n", |
| 770 | "\u001b[34m│\u001b[0m \u001b[2mAttribute = *\u001b[0m \u001b[34m│\u001b[0m\n", |
| 771 | "\u001b[34m│\u001b[0m \u001b[2m Clusters.ClusterA: \u001b[0m \u001b[34m│\u001b[0m\n", |
| 772 | "\u001b[34m│\u001b[0m \u001b[2mEndpoint = *, Cluster = specific, \u001b[0m \u001b[34m│\u001b[0m\n", |
| 773 | "\u001b[34m│\u001b[0m \u001b[2mAttribute = *\u001b[0m \u001b[34m│\u001b[0m\n", |
| 774 | "\u001b[34m│\u001b[0m \u001b[2m \u001b[0m\u001b[2;32m'*'\u001b[0m\u001b[2m or \u001b[0m\u001b[1;2m(\u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m: \u001b[0m \u001b[34m│\u001b[0m\n", |
| 775 | "\u001b[34m│\u001b[0m \u001b[2mEndpoint = *, Cluster = *, \u001b[0m \u001b[34m│\u001b[0m\n", |
| 776 | "\u001b[34m│\u001b[0m \u001b[2mAttribute = *\u001b[0m \u001b[34m│\u001b[0m\n", |
| 777 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 778 | "\u001b[34m│\u001b[0m \u001b[2m The cluster and attributes specified \u001b[0m \u001b[34m│\u001b[0m\n", |
| 779 | "\u001b[34m│\u001b[0m \u001b[2mabove are to be selected from the generated \u001b[0m \u001b[34m│\u001b[0m\n", |
| 780 | "\u001b[34m│\u001b[0m \u001b[2mcluster objects.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 781 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 782 | "\u001b[34m│\u001b[0m \u001b[2m e.g.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 783 | "\u001b[34m│\u001b[0m \u001b[2m \u001b[0m\u001b[1;2;35mReadAttribute\u001b[0m\u001b[1;2m(\u001b[0m\u001b[1;2;36m1\u001b[0m\u001b[2m, \u001b[0m\u001b[1;2m[\u001b[0m\u001b[2m \u001b[0m\u001b[1;2;36m1\u001b[0m\u001b[2m \u001b[0m\u001b[1;2m]\u001b[0m\u001b[2m \u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m -- case \u001b[0m\u001b[1;2;36m4\u001b[0m\u001b[2m \u001b[0m \u001b[34m│\u001b[0m\n", |
| 784 | "\u001b[34m│\u001b[0m \u001b[2mabove.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 785 | "\u001b[34m│\u001b[0m \u001b[2m \u001b[0m\u001b[1;2;35mReadAttribute\u001b[0m\u001b[1;2m(\u001b[0m\u001b[1;2;36m1\u001b[0m\u001b[2m, \u001b[0m\u001b[1;2m[\u001b[0m\u001b[2m Clusters.Basic \u001b[0m\u001b[1;2m]\u001b[0m\u001b[2m \u001b[0m\u001b[1;2m)\u001b[0m \u001b[34m│\u001b[0m\n", |
| 786 | "\u001b[34m│\u001b[0m \u001b[2m-- case \u001b[0m\u001b[1;2;36m5\u001b[0m\u001b[2m above.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 787 | "\u001b[34m│\u001b[0m \u001b[2m \u001b[0m\u001b[1;2;35mReadAttribute\u001b[0m\u001b[1;2m(\u001b[0m\u001b[1;2;36m1\u001b[0m\u001b[2m, \u001b[0m\u001b[1;2m[\u001b[0m\u001b[2m \u001b[0m\u001b[1;2m(\u001b[0m\u001b[1;2;36m1\u001b[0m\u001b[2m, \u001b[0m \u001b[34m│\u001b[0m\n", |
| 788 | "\u001b[34m│\u001b[0m \u001b[2mClusters.Basic.Attributes.Location \u001b[0m\u001b[1;2m]\u001b[0m\u001b[2m \u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m -- \u001b[0m \u001b[34m│\u001b[0m\n", |
| 789 | "\u001b[34m│\u001b[0m \u001b[2mcase \u001b[0m\u001b[1;2;36m1\u001b[0m\u001b[2m above.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 790 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 791 | "\u001b[34m│\u001b[0m \u001b[2mreturnClusterObject: This returns the data as\u001b[0m \u001b[34m│\u001b[0m\n", |
| 792 | "\u001b[34m│\u001b[0m \u001b[2mconsolidated cluster objects, with all \u001b[0m \u001b[34m│\u001b[0m\n", |
| 793 | "\u001b[34m│\u001b[0m \u001b[2mattributes for a cluster inside\u001b[0m \u001b[34m│\u001b[0m\n", |
| 794 | "\u001b[34m│\u001b[0m \u001b[2m a single cluster-wide \u001b[0m \u001b[34m│\u001b[0m\n", |
| 795 | "\u001b[34m│\u001b[0m \u001b[2mcluster object.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 796 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 797 | "\u001b[34m│\u001b[0m \u001b[2mreportInterval: A tuple of two int-s for \u001b[0m \u001b[34m│\u001b[0m\n", |
| 798 | "\u001b[34m│\u001b[0m \u001b[1;2m(\u001b[0m\u001b[2mMinIntervalFloor, MaxIntervalCeiling\u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m. Used \u001b[0m \u001b[34m│\u001b[0m\n", |
| 799 | "\u001b[34m│\u001b[0m \u001b[2mby establishing subscriptions.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 800 | "\u001b[34m│\u001b[0m \u001b[2m When not provided, a read request will be\u001b[0m \u001b[34m│\u001b[0m\n", |
| 801 | "\u001b[34m│\u001b[0m \u001b[2msent.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 802 | "\u001b[34m│\u001b[0m \u001b[3;33mReadEvent\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mReadEvent\u001b[0m\u001b[1m(\u001b[0mnodeid: int, events: \u001b[34m│\u001b[0m\n", |
| 803 | "\u001b[34m│\u001b[0m List\u001b[1m[\u001b[0mUnion\u001b[1m[\u001b[0mNoneType, Tuple\u001b[1m[\u001b[0mint\u001b[1m]\u001b[0m, \u001b[34m│\u001b[0m\n", |
| 804 | "\u001b[34m│\u001b[0m Tuple\u001b[1m[\u001b[0mType\u001b[1m[\u001b[0mchip.clusters.ClusterObjects.Clus… \u001b[34m│\u001b[0m\n", |
| 805 | "\u001b[34m│\u001b[0m Tuple\u001b[1m[\u001b[0mType\u001b[1m[\u001b[0mchip.clusters.ClusterObjects.Clus… \u001b[34m│\u001b[0m\n", |
| 806 | "\u001b[34m│\u001b[0m Tuple\u001b[1m[\u001b[0mint, \u001b[34m│\u001b[0m\n", |
| 807 | "\u001b[34m│\u001b[0m Type\u001b[1m[\u001b[0mchip.clusters.ClusterObjects.Cluster\u001b[1m]\u001b[0m\u001b[1m]\u001b[0m, \u001b[34m│\u001b[0m\n", |
| 808 | "\u001b[34m│\u001b[0m Tuple\u001b[1m[\u001b[0mint, \u001b[34m│\u001b[0m\n", |
| 809 | "\u001b[34m│\u001b[0m Type\u001b[1m[\u001b[0mchip.clusters.ClusterObjects.ClusterEve… \u001b[34m│\u001b[0m\n", |
| 810 | "\u001b[34m│\u001b[0m reportInterval: Tuple\u001b[1m[\u001b[0mint, int\u001b[1m]\u001b[0m = \u001b[3;35mNone\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 811 | "\u001b[34m│\u001b[0m \u001b[2mRead a list of events from a target node\u001b[0m \u001b[34m│\u001b[0m\n", |
| 812 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 813 | "\u001b[34m│\u001b[0m \u001b[2mnodeId: Target's Node ID\u001b[0m \u001b[34m│\u001b[0m\n", |
| 814 | "\u001b[34m│\u001b[0m \u001b[2mevents: A list of tuples of varying types \u001b[0m \u001b[34m│\u001b[0m\n", |
| 815 | "\u001b[34m│\u001b[0m \u001b[2mdepending on the type of read being \u001b[0m \u001b[34m│\u001b[0m\n", |
| 816 | "\u001b[34m│\u001b[0m \u001b[2mrequested:\u001b[0m \u001b[34m│\u001b[0m\n", |
| 817 | "\u001b[34m│\u001b[0m \u001b[2m \u001b[0m\u001b[1;2m(\u001b[0m\u001b[2mendpoint, Clusters.ClusterA.EventA\u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m: \u001b[0m \u001b[34m│\u001b[0m\n", |
| 818 | "\u001b[34m│\u001b[0m \u001b[2mEndpoint = specific, Cluster = specific, \u001b[0m \u001b[34m│\u001b[0m\n", |
| 819 | "\u001b[34m│\u001b[0m \u001b[2mEvent = specific\u001b[0m \u001b[34m│\u001b[0m\n", |
| 820 | "\u001b[34m│\u001b[0m \u001b[2m \u001b[0m\u001b[1;2m(\u001b[0m\u001b[2mendpoint, Clusters.ClusterA\u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m: \u001b[0m \u001b[34m│\u001b[0m\n", |
| 821 | "\u001b[34m│\u001b[0m \u001b[2mEndpoint = specific, Cluster = specific, \u001b[0m \u001b[34m│\u001b[0m\n", |
| 822 | "\u001b[34m│\u001b[0m \u001b[2mEvent = *\u001b[0m \u001b[34m│\u001b[0m\n", |
| 823 | "\u001b[34m│\u001b[0m \u001b[2m \u001b[0m\u001b[1;2m(\u001b[0m\u001b[2mClusters.ClusterA.EventA\u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m: \u001b[0m \u001b[34m│\u001b[0m\n", |
| 824 | "\u001b[34m│\u001b[0m \u001b[2mEndpoint = *, Cluster = specific, \u001b[0m \u001b[34m│\u001b[0m\n", |
| 825 | "\u001b[34m│\u001b[0m \u001b[2mEvent = specific\u001b[0m \u001b[34m│\u001b[0m\n", |
| 826 | "\u001b[34m│\u001b[0m \u001b[2m endpoint: \u001b[0m \u001b[34m│\u001b[0m\n", |
| 827 | "\u001b[34m│\u001b[0m \u001b[2mEndpoint = specific, Cluster = *, \u001b[0m \u001b[34m│\u001b[0m\n", |
| 828 | "\u001b[34m│\u001b[0m \u001b[2mEvent = *\u001b[0m \u001b[34m│\u001b[0m\n", |
| 829 | "\u001b[34m│\u001b[0m \u001b[2m Clusters.ClusterA: \u001b[0m \u001b[34m│\u001b[0m\n", |
| 830 | "\u001b[34m│\u001b[0m \u001b[2mEndpoint = *, Cluster = specific, \u001b[0m \u001b[34m│\u001b[0m\n", |
| 831 | "\u001b[34m│\u001b[0m \u001b[2mEvent = *\u001b[0m \u001b[34m│\u001b[0m\n", |
| 832 | "\u001b[34m│\u001b[0m \u001b[2m \u001b[0m\u001b[2;32m'*'\u001b[0m\u001b[2m or \u001b[0m\u001b[1;2m(\u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m: \u001b[0m \u001b[34m│\u001b[0m\n", |
| 833 | "\u001b[34m│\u001b[0m \u001b[2mEndpoint = *, Cluster = *, \u001b[0m \u001b[34m│\u001b[0m\n", |
| 834 | "\u001b[34m│\u001b[0m \u001b[2mEvent = *\u001b[0m \u001b[34m│\u001b[0m\n", |
| 835 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 836 | "\u001b[34m│\u001b[0m \u001b[2mThe cluster and events specified above are to\u001b[0m \u001b[34m│\u001b[0m\n", |
| 837 | "\u001b[34m│\u001b[0m \u001b[2mbe selected from the generated cluster \u001b[0m \u001b[34m│\u001b[0m\n", |
| 838 | "\u001b[34m│\u001b[0m \u001b[2mobjects.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 839 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 840 | "\u001b[34m│\u001b[0m \u001b[2me.g.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 841 | "\u001b[34m│\u001b[0m \u001b[2m \u001b[0m\u001b[1;2;35mReadEvent\u001b[0m\u001b[1;2m(\u001b[0m\u001b[1;2;36m1\u001b[0m\u001b[2m, \u001b[0m\u001b[1;2m[\u001b[0m\u001b[2m \u001b[0m\u001b[1;2;36m1\u001b[0m\u001b[2m \u001b[0m\u001b[1;2m]\u001b[0m\u001b[2m \u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m -- case \u001b[0m\u001b[1;2;36m4\u001b[0m\u001b[2m above.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 842 | "\u001b[34m│\u001b[0m \u001b[2m \u001b[0m\u001b[1;2;35mReadEvent\u001b[0m\u001b[1;2m(\u001b[0m\u001b[1;2;36m1\u001b[0m\u001b[2m, \u001b[0m\u001b[1;2m[\u001b[0m\u001b[2m Clusters.Basic \u001b[0m\u001b[1;2m]\u001b[0m\u001b[2m \u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m -- case\u001b[0m \u001b[34m│\u001b[0m\n", |
| 843 | "\u001b[34m│\u001b[0m \u001b[1;2;36m5\u001b[0m\u001b[2m above.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 844 | "\u001b[34m│\u001b[0m \u001b[2m \u001b[0m\u001b[1;2;35mReadEvent\u001b[0m\u001b[1;2m(\u001b[0m\u001b[1;2;36m1\u001b[0m\u001b[2m, \u001b[0m\u001b[1;2m[\u001b[0m\u001b[2m \u001b[0m\u001b[1;2m(\u001b[0m\u001b[1;2;36m1\u001b[0m\u001b[2m, \u001b[0m \u001b[34m│\u001b[0m\n", |
| 845 | "\u001b[34m│\u001b[0m \u001b[2mClusters.Basic.Events.Location \u001b[0m\u001b[1;2m]\u001b[0m\u001b[2m \u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m -- case \u001b[0m\u001b[1;2;36m1\u001b[0m\u001b[2m \u001b[0m \u001b[34m│\u001b[0m\n", |
| 846 | "\u001b[34m│\u001b[0m \u001b[2mabove.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 847 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 848 | "\u001b[34m│\u001b[0m \u001b[2mreportInterval: A tuple of two int-s for \u001b[0m \u001b[34m│\u001b[0m\n", |
| 849 | "\u001b[34m│\u001b[0m \u001b[1;2m(\u001b[0m\u001b[2mMinIntervalFloor, MaxIntervalCeiling\u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m. Used \u001b[0m \u001b[34m│\u001b[0m\n", |
| 850 | "\u001b[34m│\u001b[0m \u001b[2mby establishing subscriptions.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 851 | "\u001b[34m│\u001b[0m \u001b[2m When not provided, a read request will be\u001b[0m \u001b[34m│\u001b[0m\n", |
| 852 | "\u001b[34m│\u001b[0m \u001b[2msent.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 853 | "\u001b[34m│\u001b[0m \u001b[3;33mResolveNode\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mResolveNode\u001b[0m\u001b[1m(\u001b[0mnodeid\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 854 | "\u001b[34m│\u001b[0m \u001b[3;33mSendCommand\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mSendCommand\u001b[0m\u001b[1m(\u001b[0mnodeid: int, endpoint: int, \u001b[34m│\u001b[0m\n", |
| 855 | "\u001b[34m│\u001b[0m payload: \u001b[34m│\u001b[0m\n", |
| 856 | "\u001b[34m│\u001b[0m chip.clusters.ClusterObjects.ClusterCommand, \u001b[34m│\u001b[0m\n", |
| 857 | "\u001b[34m│\u001b[0m \u001b[33mresponseType\u001b[0m=\u001b[3;35mNone\u001b[0m, timedRequestTimeoutMs: int \u001b[34m│\u001b[0m\n", |
| 858 | "\u001b[34m│\u001b[0m = \u001b[3;35mNone\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 859 | "\u001b[34m│\u001b[0m \u001b[2mSend a cluster-object encapsulated command to\u001b[0m \u001b[34m│\u001b[0m\n", |
| 860 | "\u001b[34m│\u001b[0m \u001b[2ma node and get returned a future that can be \u001b[0m \u001b[34m│\u001b[0m\n", |
| 861 | "\u001b[34m│\u001b[0m \u001b[2mawaited upon to receive the response.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 862 | "\u001b[34m│\u001b[0m \u001b[2mIf a valid responseType is passed in, that \u001b[0m \u001b[34m│\u001b[0m\n", |
| 863 | "\u001b[34m│\u001b[0m \u001b[2mwill be used to deserialize the object. If \u001b[0m \u001b[34m│\u001b[0m\n", |
| 864 | "\u001b[34m│\u001b[0m \u001b[2mnot, the type will be automatically deduced\u001b[0m \u001b[34m│\u001b[0m\n", |
| 865 | "\u001b[34m│\u001b[0m \u001b[2mfrom the metadata received over the wire.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 866 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 867 | "\u001b[34m│\u001b[0m \u001b[2mtimedWriteTimeoutMs: Timeout for a timed \u001b[0m \u001b[34m│\u001b[0m\n", |
| 868 | "\u001b[34m│\u001b[0m \u001b[2minvoke request. Omit or set to \u001b[0m\u001b[2;32m'None'\u001b[0m\u001b[2m to \u001b[0m \u001b[34m│\u001b[0m\n", |
| 869 | "\u001b[34m│\u001b[0m \u001b[2mindicate a non-timed request.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 870 | "\u001b[34m│\u001b[0m \u001b[3;33mSetBlockingCB\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mSetBlockingCB\u001b[0m\u001b[1m(\u001b[0mblockingCB\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 871 | "\u001b[34m│\u001b[0m \u001b[3;33mSetLogFilter\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mSetLogFilter\u001b[0m\u001b[1m(\u001b[0mcategory\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 872 | "\u001b[34m│\u001b[0m \u001b[3;33mSetThreadOperationalDataset\u001b[0m = \u001b[3;96mdef \u001b[0m \u001b[34m│\u001b[0m\n", |
| 873 | "\u001b[34m│\u001b[0m \u001b[1;31mSetThreadOperationalDataset\u001b[0m\u001b[1m(\u001b[0mthreadOperationa… \u001b[34m│\u001b[0m\n", |
| 874 | "\u001b[34m│\u001b[0m \u001b[3;33mSetWiFiCredentials\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mSetWiFiCredentials\u001b[0m\u001b[1m(\u001b[0mssid, credentials\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 875 | "\u001b[34m│\u001b[0m \u001b[3;33mShutdown\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mShutdown\u001b[0m\u001b[1m(\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 876 | "\u001b[34m│\u001b[0m \u001b[2mShuts down this controller and reclaims any \u001b[0m \u001b[34m│\u001b[0m\n", |
| 877 | "\u001b[34m│\u001b[0m \u001b[2mused resources, including the bound\u001b[0m \u001b[34m│\u001b[0m\n", |
| 878 | "\u001b[34m│\u001b[0m \u001b[2mC++ constructor instance in the SDK.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 879 | "\u001b[34m│\u001b[0m \u001b[3;33mShutdownAll\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mShutdownAll\u001b[0m\u001b[1m(\u001b[0m\u001b[33m...\u001b[0m\u001b[1m)\u001b[0m \u001b[2mShut down all active \u001b[0m \u001b[34m│\u001b[0m\n", |
| 880 | "\u001b[34m│\u001b[0m \u001b[2mcontrollers and reclaim any used resources.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 881 | "\u001b[34m│\u001b[0m \u001b[3;33mWriteAttribute\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mWriteAttribute\u001b[0m\u001b[1m(\u001b[0mnodeid: int, attributes: \u001b[34m│\u001b[0m\n", |
| 882 | "\u001b[34m│\u001b[0m List\u001b[1m[\u001b[0mTuple\u001b[1m[\u001b[0mint, \u001b[34m│\u001b[0m\n", |
| 883 | "\u001b[34m│\u001b[0m chip.clusters.ClusterObjects.ClusterAttribut… \u001b[34m│\u001b[0m\n", |
| 884 | "\u001b[34m│\u001b[0m timedRequestTimeoutMs: int = \u001b[3;35mNone\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 885 | "\u001b[34m│\u001b[0m \u001b[2mWrite a list of attributes on a target node.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 886 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 887 | "\u001b[34m│\u001b[0m \u001b[2mnodeId: Target's Node ID\u001b[0m \u001b[34m│\u001b[0m\n", |
| 888 | "\u001b[34m│\u001b[0m \u001b[2mtimedWriteTimeoutMs: Timeout for a timed \u001b[0m \u001b[34m│\u001b[0m\n", |
| 889 | "\u001b[34m│\u001b[0m \u001b[2mwrite request. Omit or set to \u001b[0m\u001b[2;32m'None'\u001b[0m\u001b[2m to \u001b[0m \u001b[34m│\u001b[0m\n", |
| 890 | "\u001b[34m│\u001b[0m \u001b[2mindicate a non-timed request.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 891 | "\u001b[34m│\u001b[0m \u001b[2mattributes: A list of tuples of type \u001b[0m \u001b[34m│\u001b[0m\n", |
| 892 | "\u001b[34m│\u001b[0m \u001b[1;2m(\u001b[0m\u001b[2mendpoint, cluster-object\u001b[0m\u001b[1;2m)\u001b[0m\u001b[2m:\u001b[0m \u001b[34m│\u001b[0m\n", |
| 893 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 894 | "\u001b[34m│\u001b[0m \u001b[2mE.g\u001b[0m \u001b[34m│\u001b[0m\n", |
| 895 | "\u001b[34m│\u001b[0m \u001b[2m \u001b[0m\u001b[1;2m(\u001b[0m\u001b[1;2;36m1\u001b[0m\u001b[2m, \u001b[0m \u001b[34m│\u001b[0m\n", |
Andrei Litvin | cf32330 | 2022-11-15 15:00:44 +0100 | [diff] [blame] | 896 | "\u001b[34m│\u001b[0m \u001b[1;2;35mClusters.UnitTesting.luster.Attributes.XYZAttribute\u001b[0m\u001b[1;2m…\u001b[0m \u001b[34m│\u001b[0m\n", |
Jerry Johns | f68cd64 | 2022-01-28 16:39:08 -0800 | [diff] [blame] | 897 | "\u001b[34m│\u001b[0m \u001b[2m-- Write \u001b[0m\u001b[2;32m'hello'\u001b[0m\u001b[2m to the XYZ attribute on the \u001b[0m \u001b[34m│\u001b[0m\n", |
| 898 | "\u001b[34m│\u001b[0m \u001b[2mtest cluster to endpoint \u001b[0m\u001b[1;2;36m1\u001b[0m \u001b[34m│\u001b[0m\n", |
| 899 | "\u001b[34m│\u001b[0m \u001b[3;33mZCLAttributeList\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mZCLAttributeList\u001b[0m\u001b[1m(\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 900 | "\u001b[34m│\u001b[0m \u001b[3;33mZCLCommandList\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mZCLCommandList\u001b[0m\u001b[1m(\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 901 | "\u001b[34m│\u001b[0m \u001b[3;33mZCLReadAttribute\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mZCLReadAttribute\u001b[0m\u001b[1m(\u001b[0mcluster, attribute, \u001b[34m│\u001b[0m\n", |
| 902 | "\u001b[34m│\u001b[0m nodeid, endpoint, groupid, \u001b[33mblocking\u001b[0m=\u001b[3;92mTrue\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 903 | "\u001b[34m│\u001b[0m \u001b[3;33mZCLSend\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mZCLSend\u001b[0m\u001b[1m(\u001b[0mcluster, command, nodeid, \u001b[34m│\u001b[0m\n", |
| 904 | "\u001b[34m│\u001b[0m endpoint, groupid, args, \u001b[33mblocking\u001b[0m=\u001b[3;91mFalse\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 905 | "\u001b[34m│\u001b[0m \u001b[3;33mZCLSubscribeAttribute\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mZCLSubscribeAttribute\u001b[0m\u001b[1m(\u001b[0mcluster, attribute, \u001b[34m│\u001b[0m\n", |
| 906 | "\u001b[34m│\u001b[0m nodeid, endpoint, minInterval, maxInterval, \u001b[34m│\u001b[0m\n", |
| 907 | "\u001b[34m│\u001b[0m \u001b[33mblocking\u001b[0m=\u001b[3;92mTrue\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 908 | "\u001b[34m│\u001b[0m \u001b[3;33mZCLWriteAttribute\u001b[0m = \u001b[3;96mdef \u001b[0m\u001b[1;31mZCLWriteAttribute\u001b[0m\u001b[1m(\u001b[0mcluster: str, \u001b[34m│\u001b[0m\n", |
| 909 | "\u001b[34m│\u001b[0m attribute: str, nodeid, endpoint, groupid, \u001b[34m│\u001b[0m\n", |
| 910 | "\u001b[34m│\u001b[0m value, \u001b[33mblocking\u001b[0m=\u001b[3;92mTrue\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 911 | "\u001b[34m╰───────────────────────────────────────────────────────────────────────────────────────────╯\u001b[0m\n" |
| 912 | ] |
| 913 | }, |
| 914 | "metadata": {}, |
| 915 | "output_type": "display_data" |
| 916 | }, |
| 917 | { |
| 918 | "data": { |
| 919 | "text/html": [ |
| 920 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #000080; text-decoration-color: #000080\">╭─────────── </span><span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"><</span><span style=\"color: #ff00ff; text-decoration-color: #ff00ff; font-weight: bold\">function</span><span style=\"color: #000000; text-decoration-color: #000000\"> mattersetlog at </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0x115ea1670</span><span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\">></span><span style=\"color: #000080; text-decoration-color: #000080\"> ───────────╮</span>\n", |
| 921 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">mattersetlog</span><span style=\"font-weight: bold\">(</span>level<span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 922 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 923 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">35</span><span style=\"font-style: italic\"> attribute(s) not shown.</span> Run <span style=\"color: #800080; text-decoration-color: #800080; font-weight: bold\">inspect</span><span style=\"font-weight: bold\">(</span>inspect<span style=\"font-weight: bold\">)</span> for options. <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 924 | "<span style=\"color: #000080; text-decoration-color: #000080\">╰──────────────────────────────────────────────────────────────╯</span>\n", |
| 925 | "</pre>\n" |
| 926 | ], |
| 927 | "text/plain": [ |
| 928 | "\u001b[34m╭─\u001b[0m\u001b[34m────────── \u001b[0m\u001b[1;34m<\u001b[0m\u001b[1;95mfunction\u001b[0m\u001b[39m mattersetlog at \u001b[0m\u001b[1;36m0x115ea1670\u001b[0m\u001b[1;34m>\u001b[0m\u001b[34m ──────────\u001b[0m\u001b[34m─╮\u001b[0m\n", |
| 929 | "\u001b[34m│\u001b[0m \u001b[3;96mdef \u001b[0m\u001b[1;31mmattersetlog\u001b[0m\u001b[1m(\u001b[0mlevel\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 930 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 931 | "\u001b[34m│\u001b[0m \u001b[1;36m35\u001b[0m\u001b[3m attribute(s) not shown.\u001b[0m Run \u001b[1;35minspect\u001b[0m\u001b[1m(\u001b[0minspect\u001b[1m)\u001b[0m for options. \u001b[34m│\u001b[0m\n", |
| 932 | "\u001b[34m╰──────────────────────────────────────────────────────────────╯\u001b[0m\n" |
| 933 | ] |
| 934 | }, |
| 935 | "metadata": {}, |
| 936 | "output_type": "display_data" |
| 937 | }, |
| 938 | { |
| 939 | "data": { |
| 940 | "text/html": [ |
| 941 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #000080; text-decoration-color: #000080\">╭───────────────── </span><span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"><</span><span style=\"color: #ff00ff; text-decoration-color: #ff00ff; font-weight: bold\">function</span><span style=\"color: #000000; text-decoration-color: #000000\"> mattersetdebug at </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0x115ea1700</span><span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\">></span><span style=\"color: #000080; text-decoration-color: #000080\"> ──────────────────╮</span>\n", |
| 942 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">mattersetdebug</span><span style=\"font-weight: bold\">(</span>enableDebugMode: bool = <span style=\"color: #00ff00; text-decoration-color: #00ff00; font-style: italic\">True</span><span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 943 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 944 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">Enables debug mode that is utilized by some Matter modules</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 945 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">to better facilitate debugging of failures </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">(</span><span style=\"color: #008080; text-decoration-color: #008080\">e.g throwing exceptions instead</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 946 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">of returning well-formatted results</span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">)</span><span style=\"color: #008080; text-decoration-color: #008080\">.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 947 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 948 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">35</span><span style=\"font-style: italic\"> attribute(s) not shown.</span> Run <span style=\"color: #800080; text-decoration-color: #800080; font-weight: bold\">inspect</span><span style=\"font-weight: bold\">(</span>inspect<span style=\"font-weight: bold\">)</span> for options. <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 949 | "<span style=\"color: #000080; text-decoration-color: #000080\">╰─────────────────────────────────────────────────────────────────────────────╯</span>\n", |
| 950 | "</pre>\n" |
| 951 | ], |
| 952 | "text/plain": [ |
| 953 | "\u001b[34m╭─\u001b[0m\u001b[34m──────────────── \u001b[0m\u001b[1;34m<\u001b[0m\u001b[1;95mfunction\u001b[0m\u001b[39m mattersetdebug at \u001b[0m\u001b[1;36m0x115ea1700\u001b[0m\u001b[1;34m>\u001b[0m\u001b[34m ─────────────────\u001b[0m\u001b[34m─╮\u001b[0m\n", |
| 954 | "\u001b[34m│\u001b[0m \u001b[3;96mdef \u001b[0m\u001b[1;31mmattersetdebug\u001b[0m\u001b[1m(\u001b[0menableDebugMode: bool = \u001b[3;92mTrue\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 955 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 956 | "\u001b[34m│\u001b[0m \u001b[36mEnables debug mode that is utilized by some Matter modules\u001b[0m \u001b[34m│\u001b[0m\n", |
| 957 | "\u001b[34m│\u001b[0m \u001b[36mto better facilitate debugging of failures \u001b[0m\u001b[1;36m(\u001b[0m\u001b[36me.g throwing exceptions instead\u001b[0m \u001b[34m│\u001b[0m\n", |
| 958 | "\u001b[34m│\u001b[0m \u001b[36mof returning well-formatted results\u001b[0m\u001b[1;36m)\u001b[0m\u001b[36m.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 959 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 960 | "\u001b[34m│\u001b[0m \u001b[1;36m35\u001b[0m\u001b[3m attribute(s) not shown.\u001b[0m Run \u001b[1;35minspect\u001b[0m\u001b[1m(\u001b[0minspect\u001b[1m)\u001b[0m for options. \u001b[34m│\u001b[0m\n", |
| 961 | "\u001b[34m╰─────────────────────────────────────────────────────────────────────────────╯\u001b[0m\n" |
| 962 | ] |
| 963 | }, |
| 964 | "metadata": {}, |
| 965 | "output_type": "display_data" |
| 966 | } |
| 967 | ], |
| 968 | "source": [ |
| 969 | "matterhelp()" |
| 970 | ] |
| 971 | }, |
| 972 | { |
| 973 | "cell_type": "markdown", |
| 974 | "id": "17536445-9ca7-4bcb-9a1b-752d08858442", |
| 975 | "metadata": {}, |
| 976 | "source": [ |
| 977 | "To get help on a specific method in that class, you can pass that in as an argument:" |
| 978 | ] |
| 979 | }, |
| 980 | { |
| 981 | "cell_type": "code", |
| 982 | "execution_count": 4, |
| 983 | "id": "537404ad-cf20-4ce8-9cd6-037c397339ee", |
| 984 | "metadata": {}, |
| 985 | "outputs": [ |
| 986 | { |
| 987 | "data": { |
| 988 | "text/html": [ |
| 989 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #000080; text-decoration-color: #000080\">╭─ </span><span style=\"color: #000080; text-decoration-color: #000080; font-weight: bold\"><</span><span style=\"color: #ff00ff; text-decoration-color: #ff00ff; font-weight: bold\">bound</span><span style=\"color: #000000; text-decoration-color: #000000\"> method ChipDeviceController.SendCommand of <chip.ChipDeviceCtrl.ChipDeviceControl</span><span style=\"color: #000080; text-decoration-color: #000080\">─╮</span>\n", |
| 990 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #00ffff; text-decoration-color: #00ffff; font-style: italic\">def </span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">ChipDeviceController.SendCommand</span><span style=\"font-weight: bold\">(</span>nodeid: int, endpoint: int, payload: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 991 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> chip.clusters.ClusterObjects.ClusterCommand, <span style=\"color: #808000; text-decoration-color: #808000\">responseType</span>=<span style=\"color: #800080; text-decoration-color: #800080; font-style: italic\">None</span>, timedRequestTimeoutMs: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 992 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> int = <span style=\"color: #800080; text-decoration-color: #800080; font-style: italic\">None</span><span style=\"font-weight: bold\">)</span>: <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 993 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 994 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">Send a cluster-object encapsulated command to a node and get returned a future that can </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 995 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">be awaited upon to receive the response.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 996 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">If a valid responseType is passed in, that will be used to deserialize the object. If </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 997 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">not, the type will be automatically deduced</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 998 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">from the metadata received over the wire.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 999 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 1000 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">timedWriteTimeoutMs: Timeout for a timed invoke request. Omit or set to </span><span style=\"color: #008000; text-decoration-color: #008000\">'None'</span><span style=\"color: #008080; text-decoration-color: #008080\"> to </span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 1001 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">indicate a non-timed request.</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 1002 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 1003 | "<span style=\"color: #000080; text-decoration-color: #000080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">27</span><span style=\"font-style: italic\"> attribute(s) not shown.</span> Run <span style=\"color: #800080; text-decoration-color: #800080; font-weight: bold\">inspect</span><span style=\"font-weight: bold\">(</span>inspect<span style=\"font-weight: bold\">)</span> for options. <span style=\"color: #000080; text-decoration-color: #000080\">│</span>\n", |
| 1004 | "<span style=\"color: #000080; text-decoration-color: #000080\">╰───────────────────────────────────────────────────────────────────────────────────────────╯</span>\n", |
| 1005 | "</pre>\n" |
| 1006 | ], |
| 1007 | "text/plain": [ |
| 1008 | "\u001b[34m╭─\u001b[0m\u001b[34m \u001b[0m\u001b[1;34m<\u001b[0m\u001b[1;95mbound\u001b[0m\u001b[39m method ChipDeviceController.SendCommand of <chip.ChipDeviceCtrl.ChipDeviceControl\u001b[0m\u001b[34m─╮\u001b[0m\n", |
| 1009 | "\u001b[34m│\u001b[0m \u001b[3;96mdef \u001b[0m\u001b[1;31mChipDeviceController.SendCommand\u001b[0m\u001b[1m(\u001b[0mnodeid: int, endpoint: int, payload: \u001b[34m│\u001b[0m\n", |
| 1010 | "\u001b[34m│\u001b[0m chip.clusters.ClusterObjects.ClusterCommand, \u001b[33mresponseType\u001b[0m=\u001b[3;35mNone\u001b[0m, timedRequestTimeoutMs: \u001b[34m│\u001b[0m\n", |
| 1011 | "\u001b[34m│\u001b[0m int = \u001b[3;35mNone\u001b[0m\u001b[1m)\u001b[0m: \u001b[34m│\u001b[0m\n", |
| 1012 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 1013 | "\u001b[34m│\u001b[0m \u001b[36mSend a cluster-object encapsulated command to a node and get returned a future that can \u001b[0m \u001b[34m│\u001b[0m\n", |
| 1014 | "\u001b[34m│\u001b[0m \u001b[36mbe awaited upon to receive the response.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 1015 | "\u001b[34m│\u001b[0m \u001b[36mIf a valid responseType is passed in, that will be used to deserialize the object. If \u001b[0m \u001b[34m│\u001b[0m\n", |
| 1016 | "\u001b[34m│\u001b[0m \u001b[36mnot, the type will be automatically deduced\u001b[0m \u001b[34m│\u001b[0m\n", |
| 1017 | "\u001b[34m│\u001b[0m \u001b[36mfrom the metadata received over the wire.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 1018 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 1019 | "\u001b[34m│\u001b[0m \u001b[36mtimedWriteTimeoutMs: Timeout for a timed invoke request. Omit or set to \u001b[0m\u001b[32m'None'\u001b[0m\u001b[36m to \u001b[0m \u001b[34m│\u001b[0m\n", |
| 1020 | "\u001b[34m│\u001b[0m \u001b[36mindicate a non-timed request.\u001b[0m \u001b[34m│\u001b[0m\n", |
| 1021 | "\u001b[34m│\u001b[0m \u001b[34m│\u001b[0m\n", |
| 1022 | "\u001b[34m│\u001b[0m \u001b[1;36m27\u001b[0m\u001b[3m attribute(s) not shown.\u001b[0m Run \u001b[1;35minspect\u001b[0m\u001b[1m(\u001b[0minspect\u001b[1m)\u001b[0m for options. \u001b[34m│\u001b[0m\n", |
| 1023 | "\u001b[34m╰───────────────────────────────────────────────────────────────────────────────────────────╯\u001b[0m\n" |
| 1024 | ] |
| 1025 | }, |
| 1026 | "metadata": {}, |
| 1027 | "output_type": "display_data" |
| 1028 | } |
| 1029 | ], |
| 1030 | "source": [ |
| 1031 | "matterhelp(devCtrl.SendCommand)" |
| 1032 | ] |
| 1033 | }, |
| 1034 | { |
| 1035 | "cell_type": "markdown", |
| 1036 | "id": "85a5e222-3efc-499a-b41b-a76ec75e17ea", |
| 1037 | "metadata": {}, |
| 1038 | "source": [ |
| 1039 | "## Log Levels\n", |
| 1040 | "\n", |
| 1041 | "By default on boot, the log level is set to `logging.ERROR`. If you would like to see more debug messages, you can set the logging level by doing so:" |
| 1042 | ] |
| 1043 | }, |
| 1044 | { |
| 1045 | "cell_type": "code", |
| 1046 | "execution_count": 5, |
| 1047 | "id": "331b1d7b-02c7-4415-9583-630973024de7", |
| 1048 | "metadata": {}, |
| 1049 | "outputs": [], |
| 1050 | "source": [ |
| 1051 | "mattersetlog(logging.DEBUG)" |
| 1052 | ] |
| 1053 | }, |
| 1054 | { |
| 1055 | "cell_type": "markdown", |
| 1056 | "id": "f27e75e7-71fe-44fa-b070-f804a6afd1ce", |
| 1057 | "metadata": {}, |
| 1058 | "source": [ |
| 1059 | "To set it back:" |
| 1060 | ] |
| 1061 | }, |
| 1062 | { |
| 1063 | "cell_type": "code", |
| 1064 | "execution_count": 6, |
| 1065 | "id": "f0e3428d-2316-4f45-9746-f637191634c7", |
| 1066 | "metadata": {}, |
| 1067 | "outputs": [], |
| 1068 | "source": [ |
| 1069 | "mattersetlog(logging.WARNING)" |
| 1070 | ] |
| 1071 | }, |
| 1072 | { |
| 1073 | "cell_type": "markdown", |
| 1074 | "id": "d8bb4bc6-336e-4747-8a8b-dc8369f92246", |
| 1075 | "metadata": {}, |
| 1076 | "source": [ |
| 1077 | "## Pretty Printing\n", |
| 1078 | "The Matter REPL leverages the rich Python package heavily to do pretty printing of various data structures with appropriate colored formatting.\n", |
| 1079 | "\n", |
| 1080 | "This pretty printer is installed by default into the REPL environment:" |
| 1081 | ] |
| 1082 | }, |
| 1083 | { |
| 1084 | "cell_type": "code", |
| 1085 | "execution_count": 7, |
| 1086 | "id": "8282f584-bd20-4b2b-b8f9-ea72cf6c4820", |
| 1087 | "metadata": {}, |
| 1088 | "outputs": [ |
| 1089 | { |
| 1090 | "data": { |
| 1091 | "text/html": [ |
| 1092 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n", |
| 1093 | "<span style=\"font-weight: bold\">{</span>\n", |
| 1094 | "<span style=\"color: #7fbf7f; text-decoration-color: #7fbf7f\">│ </span><span style=\"color: #008000; text-decoration-color: #008000\">'value'</span>: <span style=\"font-weight: bold\">[</span>\n", |
| 1095 | "<span style=\"color: #7fbf7f; text-decoration-color: #7fbf7f\">│ │ </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">1</span>,\n", |
| 1096 | "<span style=\"color: #7fbf7f; text-decoration-color: #7fbf7f\">│ │ </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span>,\n", |
| 1097 | "<span style=\"color: #7fbf7f; text-decoration-color: #7fbf7f\">│ │ </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">3</span>,\n", |
| 1098 | "<span style=\"color: #7fbf7f; text-decoration-color: #7fbf7f\">│ │ </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">4</span>,\n", |
| 1099 | "<span style=\"color: #7fbf7f; text-decoration-color: #7fbf7f\">│ │ </span><span style=\"font-weight: bold\">[</span>\n", |
| 1100 | "<span style=\"color: #7fbf7f; text-decoration-color: #7fbf7f\">│ │ │ </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">1</span>,\n", |
| 1101 | "<span style=\"color: #7fbf7f; text-decoration-color: #7fbf7f\">│ │ │ </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span>\n", |
| 1102 | "<span style=\"color: #7fbf7f; text-decoration-color: #7fbf7f\">│ │ </span><span style=\"font-weight: bold\">]</span>\n", |
| 1103 | "<span style=\"color: #7fbf7f; text-decoration-color: #7fbf7f\">│ </span><span style=\"font-weight: bold\">]</span>\n", |
| 1104 | "<span style=\"font-weight: bold\">}</span>\n", |
| 1105 | "</pre>\n" |
| 1106 | ], |
| 1107 | "text/plain": [ |
| 1108 | "\n", |
| 1109 | "\u001b[1m{\u001b[0m\n", |
| 1110 | "\u001b[2;32m│ \u001b[0m\u001b[32m'value'\u001b[0m: \u001b[1m[\u001b[0m\n", |
| 1111 | "\u001b[2;32m│ │ \u001b[0m\u001b[1;36m1\u001b[0m,\n", |
| 1112 | "\u001b[2;32m│ │ \u001b[0m\u001b[1;36m2\u001b[0m,\n", |
| 1113 | "\u001b[2;32m│ │ \u001b[0m\u001b[1;36m3\u001b[0m,\n", |
| 1114 | "\u001b[2;32m│ │ \u001b[0m\u001b[1;36m4\u001b[0m,\n", |
| 1115 | "\u001b[2;32m│ │ \u001b[0m\u001b[1m[\u001b[0m\n", |
| 1116 | "\u001b[2;32m│ │ │ \u001b[0m\u001b[1;36m1\u001b[0m,\n", |
| 1117 | "\u001b[2;32m│ │ │ \u001b[0m\u001b[1;36m2\u001b[0m\n", |
| 1118 | "\u001b[2;32m│ │ \u001b[0m\u001b[1m]\u001b[0m\n", |
| 1119 | "\u001b[2;32m│ \u001b[0m\u001b[1m]\u001b[0m\n", |
| 1120 | "\u001b[1m}\u001b[0m\n" |
| 1121 | ] |
| 1122 | }, |
| 1123 | "metadata": {}, |
| 1124 | "output_type": "display_data" |
| 1125 | } |
| 1126 | ], |
| 1127 | "source": [ |
| 1128 | "a = {'value': [1, 2, 3, 4, [1, 2]]}\n", |
| 1129 | "a" |
| 1130 | ] |
| 1131 | } |
| 1132 | ], |
| 1133 | "metadata": { |
| 1134 | "kernelspec": { |
| 1135 | "display_name": "matter-env", |
| 1136 | "language": "python", |
| 1137 | "name": "matter-env" |
| 1138 | }, |
| 1139 | "language_info": { |
| 1140 | "codemirror_mode": { |
| 1141 | "name": "ipython", |
| 1142 | "version": 3 |
| 1143 | }, |
| 1144 | "file_extension": ".py", |
| 1145 | "mimetype": "text/x-python", |
| 1146 | "name": "python", |
| 1147 | "nbconvert_exporter": "python", |
| 1148 | "pygments_lexer": "ipython3", |
| 1149 | "version": "3.8.2+chromium.10" |
| 1150 | } |
| 1151 | }, |
| 1152 | "nbformat": 4, |
| 1153 | "nbformat_minor": 5 |
| 1154 | } |