|
@@ -7,6 +7,8 @@
|
|
|
|
|
|
|
|
namespace OpenMind\FindBox;
|
|
namespace OpenMind\FindBox;
|
|
|
|
|
|
|
|
|
|
+use Generator;
|
|
|
|
|
+
|
|
|
class SmartESL
|
|
class SmartESL
|
|
|
{
|
|
{
|
|
|
protected $core;
|
|
protected $core;
|
|
@@ -51,12 +53,23 @@ class SmartESL
|
|
|
return array_values(array_filter_keys($softVersion, ['soft_major', 'soft_minor', 'soft_patch']));
|
|
return array_values(array_filter_keys($softVersion, ['soft_major', 'soft_minor', 'soft_patch']));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function AsyncBlinkOff()
|
|
|
|
|
|
|
+ public function AsyncBlinkOff(): Generator
|
|
|
{
|
|
{
|
|
|
return $this->AsyncBlinkSpecial(0, 0, 0, 0, 0);
|
|
return $this->AsyncBlinkSpecial(0, 0, 0, 0, 0);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function AsyncBlinkSpecial(int $pattern, int $repeat, int $iter_time, int $iterations, int $ledColor = 0)
|
|
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Blink the label with parameters. BlinkSpecial make use of getData() and check how many leds has to auto select the firmware version.
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param int $pattern
|
|
|
|
|
+ * @param int $repeat
|
|
|
|
|
+ * @param int $iter_time
|
|
|
|
|
+ * @param int $iterations
|
|
|
|
|
+ * @param int|0 $ledColor
|
|
|
|
|
+ * @return Generator
|
|
|
|
|
+ */
|
|
|
|
|
+ public function AsyncBlinkSpecial(int $pattern, int $repeat, int $iter_time, int $iterations, int $ledColor = 0): Generator
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
$uriParams = json_encode(array_merge(
|
|
$uriParams = json_encode(array_merge(
|