I managed to make it work! The code was not handling messages in json, after the adjustment it worked perfectly. However, I'm having another problem, the devices went offline, after I set up notifications for whatsapp. And they only came back when I deleted the notifications, see the error:
1 error
======================
Full classname legend:
======================
MainModule: "org.traccar.MainModule"
NotificatorSms: "org.traccar.notificators.NotificatorSms"
========================
End of classname legend:
========================
- ProvisionException (... < NotificatorManager:73 < NotificationManager:110 < ... < *:107 < ... < *:106 < *:148 < ConnectionManager:245 < ...)
2023-06-17 10:52:37 INFO: [T23e4753e] disconnected
2023-06-17 10:52:37 INFO: [T23e4753e] error - Unable to provision, see the following errors:
1) [Guice/NullInjectedIntoNonNullable]: null returned by binding at MainModule.provideSmsManager()
but the 1st parameter of NotificatorSms.<init>(NotificatorSms.java:39) is not @Nullable
at MainModule.provideSmsManager(MainModule.java:133)
at NotificatorSms.<init>(NotificatorSms.java:39)
\_ for 1st parameter
at NotificatorSms.class(NotificatorSms.java:39)
while locating NotificatorSms
Learn more:
https://github.com/google/guice/wiki/NULL_INJECTED_INTO_NON_NULLABLE
I will be grateful for any help
Anton, excuse my ignorance. If it's not going to abuse your patience, could you tell me how the correct XML would look like to use the link
http://my-ip:9000/send-message
, I can use it through a form by sending a POST. Normally. But I'm fumbling to configure the XML