Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. SAP Assignment
gxdn
Profile picture for user Administrator
By Administrator , 23 January, 2018
SAP assignment object contains list from logical devices and their SAP addresses and Logical Device Name.

Properties

  • 1. Logical Name
    Logical name of the object.
  • 2. SAP assignment list
    List from logical devices and their SAP addresses and Logical Device Name.

Actions

  • 1. Connect logical device
    Connects a logical device to a SAP.

  • Show SAP Assignments
  • Add SAP Assignment
//Show all SAP Assignments.
int pos, ret;
gxSapItem *it;
for (pos = 0; pos != object->sapAssignmentList.size; ++pos)
{
    ret = arr_getByIndex(&object->sapAssignmentList, pos, (void**)&it);
    if (ret != 0)
    {
        return ret;
    }
    printf("%d %s", it->id, bb_toString(&it->name));
}

//Add new SAP Assignment.
gxSapItem* it = (gxSapItem*)gxmalloc(sizeof(gxSapItem));
bb_init(&it->name);
it->id = 1;
bb_addString(&it->name, "Gurux");
arr_push(&object->sapAssignmentList, it);
  • Log in or register to post comments
  • Create new account
  • Reset your password

Book navigation

  • Activity calendar
  • Association Logical Name
  • Auto Connect
  • Auto answer
  • Clock
  • Compact data
  • Data
  • Demand register
  • Disconnect control
  • Extended register
  • GPRS modem setup
  • GSM diagnostic
  • IEC HDLC setup
  • IEC local port setup
  • IPv4 setup
  • IPv6 setup
  • Image transfer
  • Limiter
  • M-Bus Client
  • M-Bus master port setup
  • M-Bus slave port setup
  • MAC address setup
  • Modem configuration
  • PPP setup
  • Profile generic
  • Push Setup
  • Register
  • Register Monitor
  • Register activation
  • Register table
  • SAP assignment
  • Script table
  • Security setup
  • Single action schedule
  • Special days table
  • Status mapping
  • Tcp Udp Setup
  • Utility tables
  • Manufacturer custom objects

Hire Us!

Latest Releases

  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101
  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202

New forum topics

  • Inhemeter
  • DLMS Server - Profile Generic - can't add too many items to profile generic capture object - how to set maximum profile entries
  • HDLC Frames sequencing
  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin