22. High-level API Reference
160
www.yoctopuce.com
YAPI
YAPI.SetHTTPCallbackCacheDir()
ySetHTTPCallbackCacheDir()
Enables the HTTP callback cache.
php
function ySetHTTPCallbackCacheDir(
$str_directory
)
When enabled, this cache reduces the quantity of data sent to the PHP script by 50% to 70%. To
enable this cache, the method
ySetHTTPCallbackCacheDir()
must be called before any call to
yRegisterHub()
. This method takes in parameter the path of the directory used for saving data
between each callback. This folder must exist and the PHP script needs to have write access to it. It is
recommended to use a folder that is not published on the Web server since the library will save some
data of Yoctopuce devices into this folder.
Note: This feature is supported by YoctoHub and VirtualHub since version 27750.
Parameters :
str_directory
the path of the folder that will be used as cache.
Returns :
nothing.
On failure, throws an exception.
Содержание Yocto-Display
Страница 1: ...Yocto Display User Manual...
Страница 2: ......
Страница 40: ...34 www yoctopuce com...
Страница 52: ...46 www yoctopuce com...
Страница 84: ...78 www yoctopuce com...
Страница 92: ...86 www yoctopuce com...
Страница 130: ...124 www yoctopuce com...
Страница 158: ...22 High level API Reference 152 www yoctopuce com On failure throws an exception or returns a negative error code...
Страница 422: ...416 www yoctopuce com...
Страница 424: ...24 Characteristics 418 www yoctopuce com...