connect Method

Connects to an SNPP server.

Syntax

def connect() -> None: ...

Remarks

This method connects to the SNPP server. Any number of messages can later be sent using the send method.

Example (Send Page)


SNPPControl.ServerName = "MyServer"
SNPPControl.CallerId = "SenderPagerNumber"
SNPPControl.PagerId = "RecipientPagerNumber"
SNPPControl.Message = "Hello, this is my message!"
SNPPControl.Connect()
SNPPControl.Send()
SNPPControl.Disconnect()

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]