Elixir with LoRaWAN server

82 views
Skip to first unread message

coco...@gmail.com

unread,
Feb 9, 2019, 2:09:36 PM2/9/19
to LoRaWAN Server Users
Since Erlang is able to call Elixir, would it be possible to implement Internal Application directly in Elixir?

Thanks.

Cocoa.

Petr Gotthard

unread,
Feb 14, 2019, 5:17:44 AM2/14/19
to coco...@gmail.com, LoRaWAN Server Users

It should be possible to create an Elixir application. The software is designed in such a way that the application includes the server, so one could (theoretically) create an Elixir application and include the lorawan_server. I would be interested in exploring this, but have limited time and no Elixir skills, so if there is somebody out there willing to try, I am willing to help resolving the (potential) integration issues.

 

Kind Regards,

Petr

--
You received this message because you are subscribed to the Google Groups "LoRaWAN Server Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lorawan-serve...@googlegroups.com.
To post to this group, send email to lorawan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lorawan-server/80bea71d-30b9-4ffc-ba8a-3dcef711a6e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

coco...@gmail.com

unread,
Feb 16, 2019, 9:16:18 AM2/16/19
to LoRaWAN Server Users
What I thought of, as integration with Elixir,  is to make possible to write the app << my_app >> (as in the example in Application.md) with app_x which is an elixir application instead of erlang.

Kind Regards.

Cocoa

Petr Gotthard

unread,
Feb 16, 2019, 9:26:50 AM2/16/19
to coco...@gmail.com, LoRaWAN Server Users
There is an Erlang demo app: https://github.com/gotthardp/lorawan-server-demoapp. It's this app that has the main start. If you manage to convert it to Elixir, then you are done.


Odesláno ze Samsung Mobile


-------- Původní zpráva --------
Datum:16. 02. 2019 15:16 (GMT+01:00)
Komu: LoRaWAN Server Users
Předmět: Re: Elixir with LoRaWAN server
Message has been deleted

Cocoa

unread,
Feb 17, 2019, 4:05:05 AM2/17/19
to LoRaWAN Server Users
Hi Petr,

I quote what Joe Armostrong wrote about Calling Elixir from Erlang " So now I wanted to call Elixir from Erlang so that I could explore the goodness of Elixir from Erlang, but ran into a tiny problem. 
Calling Erlang from Elixir is well documented but not the other way around." (Original Post)

Do you know if is possible to call a compiled Elixir app from Erlang or have you any suggestion in which way an Elixir app can be included in LoRaWAN Server ?
What do you think to  start with a very simple Elixir app (Hello Erlang!) to start to understand in which way this simple code can be included and compiled by Rebar ?

I don't know much about Rebar , I hope in your suggestions.

Cocoa

Petr Gotthard

unread,
Feb 17, 2019, 2:28:47 PM2/17/19
to Cocoa, LoRaWAN Server Users
I would recommend you try the standard Elixir way. Don't use rebar (use elixir native tools) and ignore discouraging articles.
All you need to do in the first step is to create an elixir app and define lorawan-server as its dependency. You should start your app (elixir way) and the lorawan-server should start automatically as its dependency.

Could you try this, please?


Odesláno ze Samsung Mobile


-------- Původní zpráva --------
Od: Cocoa
Datum:17. 02. 2019 10:06 (GMT+01:00)
Komu: LoRaWAN Server Users
Předmět: Re: Elixir with LoRaWAN server

--
You received this message because you are subscribed to the Google Groups "LoRaWAN Server Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lorawan-serve...@googlegroups.com.
To post to this group, send email to lorawan...@googlegroups.com.

Cocoa

unread,
Feb 21, 2019, 2:48:07 AM2/21/19
to LoRaWAN Server Users

Hello,

I'm trying to follow your indication.

At the time I was able to realize a mix project able to use two different modules, one written in erlang and one written in elixir, both called by a 'main' application in Elixir.

Next step will be to enter your Erlang code and see how it behaves.

I will update you about the results of the tests.

Petr Gotthard

unread,
Feb 21, 2019, 2:58:02 AM2/21/19
to Cocoa, LoRaWAN Server Users
Cool, thanks. The lorawan-server is an application, so ideally you should have an erlang application called by an elixir module (or application).

Cheers, 
Petr


Odesláno ze Samsung Mobile


-------- Původní zpráva --------
Od: Cocoa
Datum:21. 02. 2019 8:48 (GMT+01:00)
Komu: LoRaWAN Server Users
Předmět: Re: Elixir with LoRaWAN server

--
You received this message because you are subscribed to the Google Groups "LoRaWAN Server Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lorawan-serve...@googlegroups.com.
To post to this group, send email to lorawan...@googlegroups.com.

Cocoa

unread,
Feb 23, 2019, 9:26:36 AM2/23/19
to LoRaWAN Server Users
Hi Petr,

Some progress in elixir, now I am able to compile an elixir project that includes an app written in erlang and one in elixir, managed as a mix umbrella project. 
Resolved all alerts generated by mix related to the inclusion of an erlang app without mix.exs.
The Erlang app can be also included as a library generated directly from rebar3.

Cheers,
Cocoa

Petr Gotthard

unread,
Feb 23, 2019, 10:55:08 AM2/23/19
to Cocoa, LoRaWAN Server Users
Sounds cool. If there is anything that can be changed or included on the server side, just let me know.

Kind Regards,
Petr


Odesláno ze Samsung Mobile


-------- Původní zpráva --------
Od: Cocoa
Datum:23. 02. 2019 15:26 (GMT+01:00)
Komu: LoRaWAN Server Users
Předmět: Re: Elixir with LoRaWAN server

--
You received this message because you are subscribed to the Google Groups "LoRaWAN Server Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lorawan-serve...@googlegroups.com.
To post to this group, send email to lorawan...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages