Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
0Activity
P. 1
luaw-refman

luaw-refman

Ratings: (0)|Views: 4 |Likes:
Published by Mikhail Miguel

More info:

Published by: Mikhail Miguel on Feb 12, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

02/12/2012

pdf

text

original

 
 
confidential ©
 
WM_PLC_F039 Level001 Page : 1 / 3
This document is the sole and exclusive property of WAVECOM. Not to be distributed or divulgedwithout prior written agreement. Ce document est la propriété exclusive de WAVECOM. Il ne peutêtre communiqué ou divulgué à des tiers sans son autorisation préalable.Printed document not updated – Document imprimé non tenu à jour
 
OPEN AT
®
DYNAMIC PROGRAMMINGWITH LUA REFERENCE MANUAL
 
 
ErreurErreurErreurErreur ! Source du renvoi introuvable.! Source du renvoi introuvable.! Source du renvoi introuvable.! Source du renvoi introuvable.20
th
February 2007confidential ©
 
LUA on WMP reference manual Page : 2 / 53
This document is the sole and exclusive property of WAVECOM. Not to be distributed or divulgedwithout prior written agreement. Ce document est la propriété exclusive de WAVECOM. Il ne peutêtre communiqué ou divulgué à des tiers sans son autorisation préalable.Printed document not updated – Document imprimé non tenu à jour
1
 
Introduction.................................................................................5
 
1.1
 
WIP Lua: a dynamic language on an embedded platform........................5
 
1.2
 
Applications............................................................................................6
 
1.3
 
Learning Lua...........................................................................................6
 
1.3.1
 
Resources........................................................................................6
 
1.3.2
 
Minimal knowledge.........................................................................7
 
1.4
 
Going further...........................................................................................8
 
1.5
 
Manual organization...............................................................................9
 
2
 
Getting started............................................................................9
 
3
 
Lua API.......................................................................................12
 
3.1
 
Limitations of Lua features....................................................................12
 
3.2
 
Scheduling............................................................................................13
 
3.3
 
WIP.......................................................................................................20
 
3.3.1
 
bearers..........................................................................................20
 
3.3.2
 
channels........................................................................................23
 
3.3.3
 
tcp.................................................................................................28
 
3.3.4
 
udp................................................................................................29
 
3.3.5
 
ping...............................................................................................30
 
3.3.6
 
fcm................................................................................................30
 
3.4
 
Flash objects.........................................................................................30
 
3.5
 
at..........................................................................................................31
 
3.6
 
sms.......................................................................................................34
 
3.7
 
shell......................................................................................................35
 
3.8
 
proc.......................................................................................................37
 
3.9
 
misc......................................................................................................37
 
4
 
C API..........................................................................................39
 
4.1
 
Lua state handling.................................................................................39
 
4.2
 
WIP interface from C.............................................................................41
 
4.3
 
Optimized memory pools.......................................................................43
 
5
 
Samples showcase.....................................................................44
 
5.1
 
HTTP server..........................................................................................44
 
5.2
 
FTP server.............................................................................................44
 
5.3
 
 XML encoder and decoder.....................................................................44
 
5.4
 
Multi-protocol application......................................................................44
 
 
 
ErreurErreurErreurErreur ! Source du renvoi introuvable.! Source du renvoi introuvable.! Source du renvoi introuvable.! Source du renvoi introuvable.20
th
February 2007confidential ©
 
LUA on WMP reference manual Page : 3 / 53
This document is the sole and exclusive property of WAVECOM. Not to be distributed or divulgedwithout prior written agreement. Ce document est la propriété exclusive de WAVECOM. Il ne peutêtre communiqué ou divulgué à des tiers sans son autorisation préalable.Printed document not updated – Document imprimé non tenu à jour
6
 
Other tools.................................................................................45
 
6.1
 
off-line compilation................................................................................45
 
 Appendix: Setting up Windows for TCP/IP over PPP Client...............47
 
6.2
 
Configure the serial port........................................................................47
 
6.3
 
Add the devkit as a modem...................................................................48
 
6.4
 
Create the connection............................................................................50
 
7
 
 Appendix: anatomy of a Lua application....................................53
 

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->