This function returns the model name(16-character) that is printed on the back of the terminal.
(Null-terminated string)

Syntax

void GetModelNo(
  char *modelno
);

Parameters

modelno
[out] Specify the pointer to store the acquired model name.
The pointer buffer needs more than 16 + 1 (17) bytes .

Return value

None

Remarks

Returns the model name of the terminal.

Requirements

Header file:
lib.h
Library file:
libSTARTUPOPH5000.a

Sample

#include <stdio.h>
#include "lib.h"

void main(void)
{
    static char modelno[16+1];
    int key;
    
    ResetKey();
    printf("\fPress TRIGGER_KEY key");
    for(;;)
    {
        if ((key = getchar()) != EOF)
        {
            ResetKey();
            switch (key)
            {
            case TRIGGER_KEY:
                Sound(TSTANDARD,VHIGH,SHIGH,0);
                GetModelNo(modelno);
                printf("\nProductID = %s", modelno);
                break;

            default:
                Sound(TCLICK,VHIGH,SLOW,0);
                break;
            }
        }
        Idle();
    }
}

Last updated: 2020/10/09