Overview

Namespaces

  • App
    • CloudModule
      • Forms
      • Model
      • Presenters
    • ConfigModule
      • Forms
      • Model
      • Presenters
    • Forms
    • GatewayModule
      • Model
      • Presenters
    • IqrfAppModule
      • Forms
      • Model
      • Presenters
    • Model
    • Presenters
    • Router
    • ServiceModule
      • Model
      • Presenters
  • PHP
  • Test
    • ConfigModule
      • Model
    • IqrfAppModule
      • Model
    • Model
    • Router
    • ServiceModule
      • Model

Classes

  • CoordinatorParserTest
  • IqrfAppManagerTest
  • IqrfMacroManagerTest
  • OsParserTest
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class OsParserTest

Tester\TestCase
Extended by Test\IqrfAppModule\Model\OsParserTest
Namespace: Test\IqrfAppModule\Model
Located at IqrfAppModule/model/OsParserTest.php
Methods summary
public
# __construct( Nette\DI\Container $container )

Constructor

Constructor

Parameters

$container
public
# setUp( )

Set up test environment

Set up test environment

public
# testParse( )

Test

Test function to parse DPA response
public
# testParseReadInfo( )

Test

Test function to parse response to DPA OS - "Read info" request
Properties summary
private Nette\DI\Container $container
#
private App\IqrfAppModule\Model\OsParser $parser
#
private string $packetOsInfo

OS Read info packet

OS Read info packet

# '00.00.02.80.00.00.00.00.05.a4.00.81.38.24.79.08.00.28.00.f0'
private array $expectedOsInfo

Expected OS Read info parsed response

Expected OS Read info parsed response

# [ 'ModuleId' => '8100A405', 'OsVersion' => '3.08D', 'TrType' => 'DCTR-72D', 'McuType' => 'PIC16F1938', 'OsBuild' => '7908', 'Rssi' => -130, 'SupplyVoltage' => '3.00 V', 'Flags' => '00', 'SlotLimits' => 'f0', ]
IQRF Gateway Daemon webapp API documentation generated by ApiGen