Hello, good day
I want to ask regarding DLMS server:
- how to set the server's logical address? I havent yet found the methods regarding that, i only found:
unsigned char GetClientSAP();
void SetClientSAP(unsigned char value);
unsigned short GetServerSAP();
void SetServerSAP(unsigned short value);
and in the header file (GXDLMSServerLN.h) i set it like this:
CGXDLMSServerLN(CGXDLMSAssociationLogicalName* ln,
CGXDLMSIecHdlcSetup* hdlc) : CGXDLMSBase(ln, hdlc)
{
// CGXDLMSSecuritySetup* pSecurity = new CGXDLMSSecuritySetup("0.0.43.0.2.255");
// CGXByteBuffer systemTitle;
ln->SetClientSAP(10);
ln->SetServerSAP(11);
CGXByteBuffer password;
password.AddString("00011123");
ln->SetSecret(password);
}
- after that, how to attach it to different association (with different authentication level)? last time i asked, you stated that there will be example about it. perhaps can you show some code sample on how to achieve that?
If the latter should be posted on different post, i'd happily crerate new post. thank you
Regards
jack