8.4. HTTP callback API and NAT filters
The PHP library is able to work in a specific mode called
HTTP callback Yocto-API
. With this mode,
you can control Yoctopuce devices installed behind a NAT filter, such as a DSL router for example,
and this without needing to open a port. The typical application is to control Yoctopuce devices,
located on a private network, from a public web site.
The NAT filter: advantages and disadvantages
A DSL router which translates network addresses (NAT) works somewhat like a private phone
switchboard (a PBX): internal extensions can call each other and call the outside; but seen from the
outside, there is only one official phone number, that of the switchboard itself. You cannot reach the
internal extensions from the outside.
Typical DSL configuration: LAN machines are isolated from the outside by the DSL router
Transposed to the network, we have the following: appliances connected to your home automation
network can communicate with one another using a local IP address (of the 192.168.xxx.yyy type),
and contact Internet servers through their public address. However, seen from the outside, you have
only one official IP address, assigned to the DSL router only, and you cannot reach your network
appliances directly from the outside. It is rather restrictive, but it is a relatively efficient protection
against intrusions.
Responses from request from LAN machines are routed.
8. Using Yocto-GPS with PHP
54
www.yoctopuce.com
Summary of Contents for Yocto-GPS
Page 1: ...Yocto GPS User s guide...
Page 2: ......
Page 6: ...22 Characteristics 557 Blueprint 559 Index 561...
Page 10: ...4 www yoctopuce com...
Page 14: ...8 www yoctopuce com...
Page 18: ...12 www yoctopuce com...
Page 22: ...16 www yoctopuce com...
Page 38: ...32 www yoctopuce com...
Page 42: ...36 www yoctopuce com...
Page 54: ...48 www yoctopuce com...
Page 72: ...66 www yoctopuce com...
Page 92: ...86 www yoctopuce com...
Page 122: ...116 www yoctopuce com...
Page 132: ...126 www yoctopuce com...
Page 564: ...22 Characteristics 558 www yoctopuce com...
Page 565: ......
Page 566: ......