Start - Gateway configuration

Editing other parameters than listed below are not necessary!
Most parameters are already well tuned for this gateway.

IQRF Repository

IQRF Gateway daemon periodically downloads state of IQRF repository and caches all the data.
Download period can be configured via this page.
IQRF Repository configuration

MQTT messaging

IQRF Gateway daemon MQTT client configuration. Multiple MQTT connections are possible.
A configuration for the well-known cloud platforms are handled in Webapp menu Clouds.
MQTT client configuration

Websocket messaging

IQRF Gateway daemon Websocket server configuration. Default port matches setting in Webapp.

Websocket server configuration

UDP messaging

IQRF Gateway daemon UDP ports configuration. Default ports match setting in IQRF IDE.

UDP configuration

Scheduler

Using Add button any gateway JSON request is added as scheduler’s task. The daemon restart is needed in order to activate added task.
There are 3 options to schedule task:
  • Cron format (e.g. every 5s -> */5 * * * * * *)
  • Exact time (one shot task at specific time in format dd.mm.rrrr mm:ss)
  • Period (periodic task at defined period)
There are 3 options to direct JSON response (result of scheduled JSON request task) to:
  • MqMessaging
  • MqttMessaging
  • WebsocketMessaging
Scheduler configuration Scheduler configuration
There is also possibility to export and then import exported tasks. The daemon restart is needed after the import.
Task JSON file example 1551266261.json for the import:
{
	"taskId": 1551266261,
	"clientId": "SchedulerMessaging",
	"timeSpec": {
		"cronTime": [
			"*/5",
			"*",
			"*",
			"*",
			"*",
			"*",
			"*"
		],
		"exactTime": false,
		"periodic": false,
		"period": 0,
		"startTime": ""
	},
	"task": {
		"messaging": "MqttMessaging",
		"message": {
			"mType": "iqrfEmbedLedr_Pulse",
			"data": {
				"msgId": "testEmbedLedr",
				"req": {
					"nAdr": 0,
					"param": {}
				},
				"returnVerbose": true
			}
		}
	}
}
Read more about the scheduler and its tasks here.

Tracer

IQRF Gateway daemon logging can be configured via Tracer page. A communication with IQRF repository has been separated into its own log file.
It is possible to set log verbosity, sizes and names with or without timestamps. Logs without timestamps overwrite itself after reaching set size.
Tracer configuration

Migration

It is possible to handle export/import of IQRF Gateway daemon configuration and Scheduler tasks setting.

Configuration export/import