Epson TM-m30II Technical Reference Guide TM-m30II-N - Page 118

Escape processing for configuration scripts

Page 118 highlights

Appendix Escape processing for configuration scripts When reading/writing a configuration script for a printer, the strings (content of the configuration script) being transmitted and received uses the following escape processing. However, escape is not performed for uXXXX (hexadecimal strings) such as Japanese. Table 2 Escape Processing Escape Description \" quotation mark \\ reverse solidus \b backspace \f form feed \n line feed \r carriage return \t tab \u002F solidus \u003C < \u003E > \u002B + Acquiring the configuration script from the printer using an HTTP request A response for the json format is acquired using the GET method for the HTTP request. Request Table 3 Request Header Request header: Content-Type: text/plain; charset=utf-8 http://(printer IP address)/webconfig/beacon.cgi?Type=(one of the following Table 4 Types) Table 4 Types Type (none) current volatile static default status Description If a Type is left out, the same operation is performed as when current is specified. Specifies the currently enabled configuration script. Specifies the configuration script stored in RAM. Specifies the configuration script stored in ROM. Specifies the default configuration script. Acquires information for the Bluetooth adapter. 118

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129

118
Appendix
Escape processing for configuration scripts
When reading/writing a configuration script for a printer, the strings (content of the configuration script) being
transmitted and received uses the following escape processing. However, escape is not performed for uXXXX
(hexadecimal strings) such as Japanese.
Table 2 Escape Processing
Acquiring the configuration script from the printer using an HTTP request
A response for the json format is acquired using the GET method for the HTTP request.
Request
Table 3 Request Header
Table 4 Types
Escape
Description
\”
quotation mark
\\
reverse solidus
\b
backspace
\f
form feed
\n
line feed
\r
carriage return
\t
tab
\u002F
solidus
\u003C
<
\u003E
>
\u002B
+
Request header: Content-Type: text/plain; charset=utf-8
http://(printer IP address)/webconfig/beacon.cgi?Type=(one of the following Table 4 Types)
Type
Description
(none)
If a Type is left out, the same operation is performed as when current is specified.
current
Specifies the currently enabled configuration script.
volatile
Specifies the configuration script stored in RAM.
static
Specifies the configuration script stored in ROM.
default
Specifies the default configuration script.
status
Acquires information for the
Bluetooth
adapter.