06.01.2015 Views

INfinity 510 Protocol Reference Guide - Sirit

INfinity 510 Protocol Reference Guide - Sirit

INfinity 510 Protocol Reference Guide - Sirit

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 7 - Reader Namespace<br />

reader.login<br />

This function allows users to login to the reader.<br />

The following example shows an administrator login:<br />

>>> reader.login (login = admin, pwd = 1Hjg7df45)<br />

ok<br />

Type<br />

Permissions<br />

Parameters<br />

function<br />

guest=x,admin=x<br />

login (string)<br />

pwd (string)<br />

reader.logout<br />

This function allows users to logout of the reader. By default the login is<br />

changed to guest.<br />

The following example shows a typical user logout:<br />

>>> reader.logout()<br />

ok<br />

Type<br />

Permissions<br />

function<br />

guest=x,admin=x<br />

reader.query_bind<br />

While this command is still functional for backward compatibility reasons, it<br />

has been superceded by reader.events.query_bind(). Please use<br />

reader.events.query_bind() in any future applications.<br />

>>>reader.query_bind()<br />

ok 18<br />

Type<br />

Permissions<br />

function<br />

guest=x,admin=x<br />

<strong>INfinity</strong> <strong>510</strong> <strong>Protocol</strong> <strong>Reference</strong> <strong>Guide</strong> 49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!