How to calculate SIM GPRS data which is uploaded by Quectel M66 during GET method? - iot

I am using Quectel M66 module to send data to web server using GET method. I am uploading data every minute using two APIs. I am using airtel SIM which consumes 2MB of data per hour as per shown in my airtel app. So I want to calculate how much data is actually uploaded by GSM module M66 ?
Thanks in advance.

Related

Getting GPS data from Twilio Photo

I'm building a app that allows users to text in there photos to a twilio phone number which stores the photo on an AWS server.
However it appears the end photo is modified both in resolution and redacted exif data.
Does anyone know is this something Twilio is doing and can hopefully be switched off or is this happening during transit somehow?
I've tested from multiple phone models / os's and the results always seem the same which makes me think it twilio.
Maybe there is a better way to extract GPS data from a texted photo???

Thingsboard, Posting Data to Two Seperate Devices From One Physical Node(ESP8266/32)

I want to post data to 2 different devices from same esp32. And I want to do it like posting all the data to one device and sharing its telemetries with the second device. Is that possible on thingsboard?
I achieved this via ESP32 but when I am posting data with two different token, I need to cut the wifi and reconnect the Thingsboard with the other devices token. This situation contributes to enormous battery consumption. When I examine the thingsboard library I could not see a function about cutting the network only with thingsboard. What can be done to overcome this situation?
Any idea will be appreciated.
Thanks
One way I could think of, would be using ThingsBoard Integrations. Where one input payload can have multiple outgoing payloads (works even for multiple target devices or assets):
https://thingsboard.io/docs/user-guide/integrations/#converter-output
But this requires ThingsBoard PE & an external MQTT Broker in between your ESP32 & TB.
Or you could try the MQTT Gateway API:
https://thingsboard.io/docs/reference/gateway-mqtt-api/

Send Image as data in Core Bluetooth

I want to send an image from one device to another using core bluetooth framework. I am able to send string data. How to send an image between two devices
In exactly the same way that you send the string data. Get the image data with UIImageJPEGRepresentation.
If you need to limit so that you don't send too much at any one time, you can split the data into packets using getBytes:range: (or subdataWithRange:).

iOS Offline data buffer

Greeting everyone,
I am looking for a simple way to but my data in a buffer if I ever don't have access to Internet for a certain time.
Lets take a GSP app as an example: I am somewhere with no cell tower but my GPS registers my location. Then when I gain Internet back, it will send these location to the server.
I am currently using restkit to post my objects to the server. When the object is sent to the server, I don't really need it on the phone. So in a way I don't need a 1:1 sync between the iphone and the rest api.
The only idea I have is to have a simple local database (SQLite ?) and monitoring the connection, So I insert in the database when its offline and as soon as the connection is back up, I send the rows and delete them from the local database.
Anyone has a better idea?
Thank you
Jonathan

Best way to regularly download data from internet to iPhone app

I have developed an iPhone application that fetches data from internet. I want to check every 30 seconds if there is new data. How do I do that in the best possible way?
The app contains data downloaded from a REST API. The data is light-weight JSON-strings with status updates that will be appended to a UITableView.
You could poll using an NSTimer.

Resources