Hi Federico 

I want to register AP in openwisp through backend API.  e.g. I have AP 
information in csv file and want to register AP using this csv file 
information.
Is there any API or Script exist in openwisp where I can pass all 
information as arguments and register AP.

On Tuesday, July 10, 2018 at 6:59:11 PM UTC+5:30, stefania fratto wrote:
>
> Hi Federico, 
> I'm configuring my AP with Openwisp, and I want to register my device 
> automatically in the Openwisp controller (which is already installed and it 
> works), but I cannot complete the registration of the device. 
> When I try to configure the openwisp file in /etc/config/ I've this output:
>
> Tue Jul 10 13:02:51 2018 daemon.info openwisp: Registering device...
> Tue Jul 10 13:02:52 2018 daemon.err openwisp: Registration failed! error: 
> unrecognized secret
> Tue Jul 10 13:02:57 2018 daemon.info openwisp: Registering device...
> Tue Jul 10 13:02:57 2018 daemon.err openwisp: Registration failed! error: 
> unrecognized secret
> Tue Jul 10 13:03:02 2018 daemon.info openwisp: Registering device...
> Tue Jul 10 13:03:03 2018 daemon.err openwisp: Registration failed! error: 
> unrecognized secret
> Tue Jul 10 13:03:08 2018 daemon.info openwisp: Registering device...
> Tue Jul 10 13:03:09 2018 daemon.err openwisp: Registration failed! error: 
> unrecognized secret
> Tue Jul 10 13:03:09 2018 daemon.info procd: Instance 
> openwisp_config::instance1 s in a crash loop 6 crashes, 1 seconds since 
> last crash
> Tue Jul 10 13:04:56 2018 daemon.info openwisp: OpenWISP config agent 
> started
> Tue Jul 10 13:04:56 2018 daemon.info openwisp: Registering device...
> Tue Jul 10 13:04:57 2018 daemon.err openwisp: Registration failed! error: 
> unrecognized secret
> Tue Jul 10 13:06:16 2018 daemon.info openwisp: OpenWISP config agent 
> stopping
> Tue Jul 10 13:06:19 2018 daemon.info openwisp: OpenWISP config agent 
> started
> Tue Jul 10 13:06:19 2018 daemon.info openwisp: Registering device...
> Tue Jul 10 13:06:19 2018 daemon.err openwisp: Registration failed! error: 
> unrecognized secret
>
> I don't understand if I forget anything in the initial configuration. This 
> is my configuration file:
>
> config controller 'http'
>         option url 'https://openwisp2.localiving.it'
>         #option interval '120'
>         option verify_ssl '0'
>         option shared_secret 'L0c4l1v1ng123'
>         option consistent_key '1'
>         option mac_interface 'eth0.2'
>         #option merge_config '1'
>         #option test_config '1'
>         #option test_script '/usr/sbin/mytest'
>         option uuid ''
>         option key '7URB2bCK7nOxwHgrohqsl6ySFsJC4k96JXffoLAV+j8='
>         list unmanaged 'system.@led'
>         list unmanaged 'network.loopback'
>         list unmanaged 'network.@switch'
>         list unmanaged 'network.@switch_vlan'
>         # curl options
>         #option connect_timeout '15'
>         #option max_time '30'
>         #option capath '/etc/ssl/certs'
>         #option cacert '/etc/ssl/certs/ca-certificates.crt'
>         # hooks
>         #option pre_reload_hook '/usr/sbin/my_pre_reload_hook'
>
> Another question is : Is correct to suppose that the key option value is 
> the shared-key which is stored in the cache of the device?
> My device is a TP-link tl-wr841n v.13.
> My apologies for my english.
>
> Thanks,
>
> Stefania Fratto 
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to openwisp+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/189e4468-5d26-4876-bfc6-d6511af7b887%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to