blob: 5e99ad77e9a878c055621f54d7673dbf87a7b037 [file] [log] [blame]
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>IOT_LGen_Functions - IoT_Load_Test_Framework</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/prettify.js"></script></head><body class="FramedContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
<!-- Generated by Natural Docs, version 1.52 -->
<!-- http://www.naturaldocs.org -->
<!-- saved from url=(0026)http://www.naturaldocs.org -->
<div id=Content><div class="CFile"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="IOT_LGen_Functions"></a>IOT_LGen_Functions</h1><div class=CBody><h4 class=CHeading>Purpose</h4><p>This module contains the functions of an IoT load generator component</p><h4 class=CHeading>See also</h4><p><a href="IOT_LGen_Definitions-ttcn.html#IOT_LGen_Definitions" class=LFile id=link16 onMouseOver="ShowTip(event, 'tt13', 'link16')" onMouseOut="HideTip('tt13')">IOT_LGen_Definitions</a></p><h4 class=CHeading>Module depends on</h4><ul><li><a href="IOT_LGen_Definitions-ttcn.html#IOT_LGen_Definitions" class=LFile id=link17 onMouseOver="ShowTip(event, 'tt13', 'link17')" onMouseOut="HideTip('tt13')">IOT_LGen_Definitions</a></li><li><a href="IOT_LGen_Steps-ttcn.html#IOT_LGen_Steps" class=LFile id=link18 onMouseOver="ShowTip(event, 'tt14', 'link18')" onMouseOut="HideTip('tt14')">IOT_LGen_Steps</a></li><li>&lt;EPTF_MQTT_LGen_Definitions&gt;</li><li>&lt;EPTF_MQTT_LGen_Functions&gt;</li><li>&lt;EPTF_MQTT_LocalTransport_Functions&gt;</li><li>&lt;EPTF_COAP_LGen_Definitions&gt;</li><li>&lt;EPTF_COAP_LGen_Functions&gt;</li><li>&lt;EPTF_COAP_Transport_Definitions&gt;</li><li>&lt;EPTF_COAP_LocalTransport_Functions&gt;</li><li>&lt;EPTF_LwM2M_LGen_Definitions&gt;</li><li>&lt;EPTF_LwM2M_LGen_Functions&gt;</li><li>&lt;EPTF_LwM2M_CoapApplibTransport_Functions&gt;</li><li>&lt;EPTF_LwM2M_Object_Definitions&gt;</li><li>&lt;EPTF_LwM2M_Object_Functions&gt;</li><li>&lt;EPTF_HTTP_Definitions&gt;</li><li>&lt;EPTF_HTTP_Functions&gt;</li><li>&lt;EPTF_HTTP_Transport_Functions&gt;</li><li>&lt;EPTF_CLL_Common_Definitions&gt;</li><li>&lt;EPTF_CLL_Base_Functions&gt;</li><li>&lt;EPTF_CLL_ExecCtrl_Definitions&gt;</li><li>&lt;EPTF_CLL_ExecCtrlClient_Functions&gt;</li><li>&lt;EPTF_CLL_LGenBase_Functions&gt;</li><li>&lt;EPTF_CLL_LGenBase_ConfigFunctions&gt;</li><li>&lt;EPTF_CLL_Logging_Definitions&gt;</li><li>&lt;EPTF_CLL_Logging_Functions&gt;</li><li>&lt;InfluxDB_Definitions&gt;</li><li>&lt;InfluxDB_Functions&gt;</li></ul><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#IOT_LGen_Functions" >IOT_LGen_Functions</a></td><td class=SDescription>This module contains the functions of an IoT load generator component</td></tr><tr class="SFunction SMarked"><td class=SEntry><a href="#f_IOT_LGen_behavior" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">f_IOT_LGen_behavior</a></td><td class=SDescription>The main service function of the <a href="IOT_LGen_Definitions-ttcn.html#IOT_LGen_CT" class=LType id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">IOT_LGen_CT</a> component type After initialization, this is that function that is continuously running until the RIoT application exits</td></tr><tr class="SFunction"><td class=SEntry><a href="#f_IOT_LGen_init" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">f_IOT_LGen_init</a></td><td class=SDescription>The main init function of the <a href="IOT_LGen_Definitions-ttcn.html#IOT_LGen_CT" class=LType id=link4 onMouseOver="ShowTip(event, 'tt2', 'link4')" onMouseOut="HideTip('tt2')">IOT_LGen_CT</a> component type It initializes the integrated application libraries and defines its own <a href="IOT_LGen_Definitions-ttcn.html#c_IOT_behaviorType" class=LConstant id=link5 onMouseOver="ShowTip(event, 'tt4', 'link5')" onMouseOut="HideTip('tt4')">c_IOT_behaviorType</a> and test steps <a href="IOT_LGen_Steps-ttcn.html#f_IOT_LGen_declareSteps" class=LFunction id=link6 onMouseOver="ShowTip(event, 'tt5', 'link6')" onMouseOut="HideTip('tt5')">f_IOT_LGen_declareSteps</a> The sample database of the smart objects are also filled in here by calling <a href="#f_IOT_LGen_initSamples" class=LFunction id=link7 onMouseOver="ShowTip(event, 'tt6', 'link7')" onMouseOut="HideTip('tt6')">f_IOT_LGen_initSamples</a></td></tr><tr class="SFunction SMarked"><td class=SEntry><a href="#f_IOT_LGen_Logging_VERBOSE" id=link8 onMouseOver="ShowTip(event, 'tt7', 'link8')" onMouseOut="HideTip('tt7')">f_IOT_LGen_Logging_VERBOSE</a></td><td class=SDescription>Logging functions for the VERBOSE log level</td></tr><tr class="SFunction"><td class=SEntry><a href="#f_IOT_LGen_Logging_DEBUG" id=link9 onMouseOver="ShowTip(event, 'tt8', 'link9')" onMouseOut="HideTip('tt8')">f_IOT_LGen_Logging_DEBUG</a></td><td class=SDescription>Logging functions for the DEBUG log level</td></tr><tr class="SFunction SMarked"><td class=SEntry><a href="#f_IOT_LGen_Logging_WARNING" id=link10 onMouseOver="ShowTip(event, 'tt9', 'link10')" onMouseOut="HideTip('tt9')">f_IOT_LGen_Logging_WARNING</a></td><td class=SDescription>Logging functions for the WARNING log level</td></tr><tr class="SFunction"><td class=SEntry><a href="#f_IOT_LGen_Logging_ERROR" id=link11 onMouseOver="ShowTip(event, 'tt10', 'link11')" onMouseOut="HideTip('tt10')">f_IOT_LGen_Logging_ERROR</a></td><td class=SDescription>Logging functions for the ERROR log level</td></tr><tr class="SFunction SMarked"><td class=SEntry><a href="#f_IOT_COAP_LocalTransport_send" id=link12 onMouseOver="ShowTip(event, 'tt11', 'link12')" onMouseOut="HideTip('tt11')">f_IOT_COAP_LocalTransport_send</a></td><td class=SDescription>Wrapper of <a href="#f_IOT_COAP_LocalTransport_send" class=LFunction id=link13 onMouseOver="ShowTip(event, 'tt11', 'link13')" onMouseOut="HideTip('tt11')">f_IOT_COAP_LocalTransport_send</a>, used for catching outgoing COAP messages.</td></tr><tr class="SFunction"><td class=SEntry><a href="#f_IOT_COAP_LGen_receiveMessage" id=link14 onMouseOver="ShowTip(event, 'tt12', 'link14')" onMouseOut="HideTip('tt12')">f_IOT_COAP_LGen_receiveMessage</a></td><td class=SDescription>Wrapper of &lt;f_EPTF_COAP_LGen_receiveMessage&gt;, used for catching and incoming COAP messages.</td></tr><tr class="SFunction SMarked"><td class=SEntry><a href="#f_IOT_LGen_initSamples" id=link15 onMouseOver="ShowTip(event, 'tt6', 'link15')" onMouseOut="HideTip('tt6')">f_IOT_LGen_initSamples</a></td><td class=SDescription>Initializes the <b>v_IOT_LGen_DataSamples_DB</b> database by loading a set of data samples</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="f_IOT_LGen_behavior"></a>f_IOT_LGen_behavior</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_LGen_behavior(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>charstring&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_selfName,</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>integer&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>p_idx,</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>EPTF_ExecCtrl_CT&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_ExecCtrlRef</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Purpose</h4><p>The main service function of the <a href="IOT_LGen_Definitions-ttcn.html#IOT_LGen_CT" class=LType id=link19 onMouseOver="ShowTip(event, 'tt2', 'link19')" onMouseOut="HideTip('tt2')">IOT_LGen_CT</a> component type After initialization, this is that function that is continuously running until the RIoT application exits</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>pl_name</td><td class=CDLDescription><b>in</b> <b>charstring</b> - the name for the component instance</td></tr></table><h4 class=CHeading>Related Type</h4><p><a href="IOT_LGen_Definitions-ttcn.html#IOT_LGen_CT" class=LType id=link20 onMouseOver="ShowTip(event, 'tt2', 'link20')" onMouseOut="HideTip('tt2')">IOT_LGen_CT</a></p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="f_IOT_LGen_init"></a>f_IOT_LGen_init</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_LGen_init(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>charstring&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_selfName,</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>integer&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>p_idx,</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>EPTF_ExecCtrl_CT&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_ExecCtrlRef</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Purpose</h4><p>The main init function of the <a href="IOT_LGen_Definitions-ttcn.html#IOT_LGen_CT" class=LType id=link21 onMouseOver="ShowTip(event, 'tt2', 'link21')" onMouseOut="HideTip('tt2')">IOT_LGen_CT</a> component type It initializes the integrated application libraries and defines its own <a href="IOT_LGen_Definitions-ttcn.html#c_IOT_behaviorType" class=LConstant id=link22 onMouseOver="ShowTip(event, 'tt4', 'link22')" onMouseOut="HideTip('tt4')">c_IOT_behaviorType</a> and test steps <a href="IOT_LGen_Steps-ttcn.html#f_IOT_LGen_declareSteps" class=LFunction id=link23 onMouseOver="ShowTip(event, 'tt5', 'link23')" onMouseOut="HideTip('tt5')">f_IOT_LGen_declareSteps</a> The sample database of the smart objects are also filled in here by calling <a href="#f_IOT_LGen_initSamples" class=LFunction id=link24 onMouseOver="ShowTip(event, 'tt6', 'link24')" onMouseOut="HideTip('tt6')">f_IOT_LGen_initSamples</a></p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>pl_name</td><td class=CDLDescription><b>in</b> <b>charstring</b> - the name for the component instance</td></tr></table><h4 class=CHeading>Related Type</h4><p><a href="IOT_LGen_Definitions-ttcn.html#IOT_LGen_CT" class=LType id=link25 onMouseOver="ShowTip(event, 'tt2', 'link25')" onMouseOut="HideTip('tt2')">IOT_LGen_CT</a></p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="f_IOT_LGen_Logging_VERBOSE"></a>f_IOT_LGen_Logging_VERBOSE</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_LGen_Logging_VERBOSE(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in @lazy&nbsp;</td><td class="PType prettyprint " nowrap>charstring&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_message</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Purpose</h4><p>Logging functions for the VERBOSE log level</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>pl_message</td><td class=CDLDescription><b>in</b> <b>charstring</b> - string to be logged</td></tr></table><h4 class=CHeading>Related Types</h4><p><a href="IOT_LGen_Definitions-ttcn.html#IOT_LGen_CT" class=LType id=link26 onMouseOver="ShowTip(event, 'tt2', 'link26')" onMouseOut="HideTip('tt2')">IOT_LGen_CT</a></p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="f_IOT_LGen_Logging_DEBUG"></a>f_IOT_LGen_Logging_DEBUG</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_LGen_Logging_DEBUG(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in @lazy&nbsp;</td><td class="PType prettyprint " nowrap>charstring&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_message</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Purpose</h4><p>Logging functions for the DEBUG log level</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>pl_message</td><td class=CDLDescription><b>in</b> <b>charstring</b> - string to be logged</td></tr></table><h4 class=CHeading>Related Types</h4><p><a href="IOT_LGen_Definitions-ttcn.html#IOT_LGen_CT" class=LType id=link27 onMouseOver="ShowTip(event, 'tt2', 'link27')" onMouseOut="HideTip('tt2')">IOT_LGen_CT</a></p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="f_IOT_LGen_Logging_WARNING"></a>f_IOT_LGen_Logging_WARNING</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_LGen_Logging_WARNING(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in @lazy&nbsp;</td><td class="PType prettyprint " nowrap>charstring&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_message</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Purpose</h4><p>Logging functions for the WARNING log level</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>pl_message</td><td class=CDLDescription><b>in</b> <b>charstring</b> - string to be logged</td></tr></table><h4 class=CHeading>Related Types</h4><p><a href="IOT_LGen_Definitions-ttcn.html#IOT_LGen_CT" class=LType id=link28 onMouseOver="ShowTip(event, 'tt2', 'link28')" onMouseOut="HideTip('tt2')">IOT_LGen_CT</a></p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="f_IOT_LGen_Logging_ERROR"></a>f_IOT_LGen_Logging_ERROR</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_LGen_Logging_ERROR(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in @lazy&nbsp;</td><td class="PType prettyprint " nowrap>charstring&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_message</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Purpose</h4><p>Logging functions for the ERROR log level</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>pl_message</td><td class=CDLDescription><b>in</b> <b>charstring</b> - string to be logged</td></tr></table><h4 class=CHeading>Related Types</h4><p><a href="IOT_LGen_Definitions-ttcn.html#IOT_LGen_CT" class=LType id=link29 onMouseOver="ShowTip(event, 'tt2', 'link29')" onMouseOut="HideTip('tt2')">IOT_LGen_CT</a></p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="f_IOT_COAP_LocalTransport_send"></a>f_IOT_COAP_LocalTransport_send</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_COAP_LocalTransport_send(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>EPTF_COAP_PDU&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_msg</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Purpose</h4><p>Wrapper of <a href="#f_IOT_COAP_LocalTransport_send" class=LFunction id=link30 onMouseOver="ShowTip(event, 'tt11', 'link30')" onMouseOut="HideTip('tt11')">f_IOT_COAP_LocalTransport_send</a>, used for catching outgoing COAP messages.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>pl_msg</td><td class=CDLDescription><b>in</b> &lt;EPTF_COAP_PDU&gt; - outgoing message</td></tr></table><h4 class=CHeading>Related Types</h4><p><a href="IOT_LGen_Definitions-ttcn.html#IOT_LGen_CT" class=LType id=link31 onMouseOver="ShowTip(event, 'tt2', 'link31')" onMouseOut="HideTip('tt2')">IOT_LGen_CT</a></p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="f_IOT_COAP_LGen_receiveMessage"></a>f_IOT_COAP_LGen_receiveMessage</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_COAP_LGen_receiveMessage(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>EPTF_COAP_PDU&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_message</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Purpose</h4><p>Wrapper of &lt;f_EPTF_COAP_LGen_receiveMessage&gt;, used for catching and incoming COAP messages.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>pl_message</td><td class=CDLDescription><b>in</b> &lt;EPTF_COAP_PDU&gt; - incoming message</td></tr></table><h4 class=CHeading>Related Types</h4><p><a href="IOT_LGen_Definitions-ttcn.html#IOT_LGen_CT" class=LType id=link32 onMouseOver="ShowTip(event, 'tt2', 'link32')" onMouseOut="HideTip('tt2')">IOT_LGen_CT</a></p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="f_IOT_LGen_initSamples"></a>f_IOT_LGen_initSamples</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function f_IOT_LGen_initSamples(</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>charstring&nbsp;</td><td class="PParameter prettyprint " nowrap>p_selfName</td><td class="PAfterParameters prettyprint "nowrap>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Purpose</h4><p>Initializes the <b>v_IOT_LGen_DataSamples_DB</b> database by loading a set of data samples</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>p_selfName</td><td class=CDLDescription><b>in charstring</b> - load generator instance&rsquo;s name</td></tr></table><h4 class=CHeading>Related Types</h4><p><a href="IOT_LGen_Definitions-ttcn.html#IOT_LGen_CT" class=LType id=link33 onMouseOver="ShowTip(event, 'tt2', 'link33')" onMouseOut="HideTip('tt2')">IOT_LGen_CT</a></p></div></div></div>
</div><!--Content-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_LGen_behavior(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>charstring&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_selfName,</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>integer&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>p_idx,</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>EPTF_ExecCtrl_CT&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_ExecCtrlRef</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote>The main service function of the IOT_LGen_CT component type After initialization, this is that function that is continuously running until the RIoT application exits</div></div><div class=CToolTip id="tt2"><div class=CType><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">type component IOT_LGen_CT</td></tr></table></blockquote>IoT load generator component</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_LGen_init(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>charstring&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_selfName,</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>integer&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>p_idx,</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>EPTF_ExecCtrl_CT&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_ExecCtrlRef</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote>The main init function of the IOT_LGen_CT component type It initializes the integrated application libraries and defines its own c_IOT_behaviorType and test steps f_IOT_LGen_declareSteps The sample database of the smart objects are also filled in here by calling f_IOT_LGen_initSamples</div></div><div class=CToolTip id="tt4"><div class=CConstant><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">const charstring c_IOT_behaviorType := &quot;IOT_Behavior&quot;</td></tr></table></blockquote>Constant for the simulated IoT behavior type</div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function f_IOT_LGen_declareSteps() runs on IOT_LGen_CT</td></tr></table></blockquote>Function to declare all the RIoT application related test steps</div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function f_IOT_LGen_initSamples(</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>charstring&nbsp;</td><td class="PParameter prettyprint " nowrap>p_selfName</td><td class="PAfterParameters prettyprint "nowrap>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote>Initializes the <b>v_IOT_LGen_DataSamples_DB</b> database by loading a set of data samples</div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_LGen_Logging_VERBOSE(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in @lazy&nbsp;</td><td class="PType prettyprint " nowrap>charstring&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_message</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote>Logging functions for the VERBOSE log level</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_LGen_Logging_DEBUG(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in @lazy&nbsp;</td><td class="PType prettyprint " nowrap>charstring&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_message</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote>Logging functions for the DEBUG log level</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_LGen_Logging_WARNING(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in @lazy&nbsp;</td><td class="PType prettyprint " nowrap>charstring&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_message</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote>Logging functions for the WARNING log level</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_LGen_Logging_ERROR(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in @lazy&nbsp;</td><td class="PType prettyprint " nowrap>charstring&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_message</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote>Logging functions for the ERROR log level</div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_COAP_LocalTransport_send(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>EPTF_COAP_PDU&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_msg</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote>Wrapper of f_IOT_COAP_LocalTransport_send, used for catching outgoing COAP messages.</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>function f_IOT_COAP_LGen_receiveMessage(</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td class="PTypePrefix prettyprint " nowrap>in&nbsp;</td><td class="PType prettyprint " nowrap>EPTF_COAP_PDU&nbsp;</td><td class="PParameter prettyprint " nowrap width=100%>pl_message</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>) runs on IOT_LGen_CT</td></tr></table></td></tr></table></blockquote>Wrapper of f_EPTF_COAP_LGen_receiveMessage, used for catching and incoming COAP messages.</div></div><div class=CToolTip id="tt13"><div class=CFile>This module contains the definitions for an IoT load generator component</div></div><div class=CToolTip id="tt14"><div class=CFile>This module contains test step functions for an IoT load generator component</div></div><!--END_ND_TOOLTIPS-->
<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>