Integration with LUA

159 views
Skip to first unread message

Milrren Mattar

unread,
Dec 21, 2015, 2:11:32 PM12/21/15
to nanopb
Hey guys!

I am using nanopb to an embedded c project and now I have to receive and handle data on a web socket in LUA.
I've tried to compile my .proto files with PBLuaC, a project that I found on web, and sadly it doesn't work at all.

Anybody have ever used nanopb on lua? I really need some tips!

Thanks!

Petteri Aimonen

unread,
Dec 21, 2015, 2:37:54 PM12/21/15
to nan...@googlegroups.com
Hi,

> I am using nanopb to an embedded c project and now I have to receive and
> handle data on a web socket in LUA.

So you need a protocol buffers library for Lua.

In general nanopb is not really designed for calling from another
language. It would be better to have a lua-native library for that side
of communication. All protobuf libraries are compatible, so that part
shouldn't be a problem.

I assume this is the project you tried?
http://lua.siffiejoe.dtdns.net/pb4lua/

Maybe try contacting them with the problems you had? It seems like a
reasonably well maintained project so I think it should work.

--
Petteri

san...@revenuemantra.com

unread,
May 16, 2018, 1:46:21 AM5/16/18
to nanopb

Hi,

I'm unable to reach http://lua.siffiejoe.dtdns.net/pb4lua/ this url. Can you help me with this?

Thanks in advance

Petteri Aimonen

unread,
May 16, 2018, 1:49:49 AM5/16/18
to nan...@googlegroups.com
Hi,

> I'm unable to reach http://lua.siffiejoe.dtdns.net/pb4lua/ this url. Can you help me with this?

Seems that project has ceased to exist some time in the past 3 years.
Instead it seems there is a new package implementing protobuf for lua:

https://github.com/starwing/lua-protobuf

--
Petteri
Reply all
Reply to author
Forward
0 new messages