Sponsored Content
Top Forums Programming Basic Arduino UNO Bluetooth Testing with the BLE 4.0 (CC2541, MLT-BT04 IC) Post 303043396 by Neo on Monday 27th of January 2020 11:29:44 AM
Old 01-27-2020
ArduinoBlue update:

Found some more ArdunioBlue docs:

Code:
https://github.com/purwar2016/ArduinoBlue-library/wiki/Documentation

Showing these classes:

Code:
ArduinoBlue class

phone(Stream obj) - Constructor pass SoftwareSerial object. Alternatively, you can pass any Serial. For example, on the Arduino Mega you can pass phone(Serial2) instead. Note if you use Serial, you won't be able to use serial communication through USB.

int getButton() - Returns once the ID of the button that was pressed. Returns -1 otherwise.

int getSliderId() - Returns once the slider ID of the slider that was moved. Returns -1 otherwise.

int getSliderVal() - Returns the value of the slider of the slider that was moved.

int getThrottle() - Returns the throttle value of the joystick.

int getSteering() - Returns the steering value of the joystick.

void sendMessage(String text) - Sends the text to the phone as a popup.

String getText() - Returns the text that was sent from the app's text box.

So, I was able to easily send test messages (using BLE) from the Arduino UNO back to the iPhone ArdunioBlue app using the sendMessage() method.

Basic Arduino UNO Bluetooth Testing with the BLE 4.0 (CC2541, MLT-BT04 IC)-img_0d99327371ad-1jpeg


Basically, from all the testing I did so far, I'm quite happy with ArduinoBlue for IOS.

I think next I may combine this BLE app with NB-IoT to send command and control (C2) messages via BLE from my iPhone to a server on the Internet using an NB-IoT network and get C2 status messages and alerts back from the remote server to my iPhone the same way.
 

7 More Discussions You Might Find Interesting

1. OS X (Apple)

Semi-Automatic Arduino Detection.

I am working on a semi-auto detection idea for Arduino for the Scope project. It does require a little user intervention but minimal. It works by just responding to two on screen prompts to unplug and plug Arduino into a USB port. There are two versions and both work perfectly well and give... (3 Replies)
Discussion started by: wisecracker
3 Replies

2. Programming

Very Basic Arduino Uno Board Testing

A very simple Arduino board test... LOL Here is some very easy code to test a cheap Arduino board I just got from China via Aliexpress. I am still waiting on a about 30 more orders from Aliexpress for more Arduino stuff. This was the first order which made it here. /* Arduino test-code... (18 Replies)
Discussion started by: Neo
18 Replies

3. Programming

Arduino-cli - Uploading to Unknown Chinese Arduino Boards using the Arduino Command Line Interface

In my further exploration of Arduino, today I decided to install the arduino-cli on my mac today. https://github.com/arduino/arduino-cli I followed the instructions for macOS but when I got to this part: arduino-cli board list I got the dreaded "Unknown" Fully Qualified Board Name... (1 Reply)
Discussion started by: Neo
1 Replies

4. Programming

More Arduino Stuff...

HI all... (Apologies for any typos.) To add to Neo's Arduino subject matter I have decided to upload this in ".zip" format. Ignore "*.info" files these are AMIGA icons only and also the "HAM" drawer as these are photos in ancient AMIGA HAM modes. I have noticed that there are current... (6 Replies)
Discussion started by: wisecracker
6 Replies

5. Programming

Chinese Arduino UNO Clones - The Wavgat versus the generic UNO R3 Clone - The Winner Is?

Waiting for more fun Ardunio parts from AliExpress, I decided to test two cheap Chinese Arduino UNO clones. The Arduino UNO R3 (CH340G) MEGA328P The Wavgat UNO R3 (CH340G) MEGA328P Both of these Chinese Ardunio clones sell for about $3 USD, delivered to your door. The bottom line is... (0 Replies)
Discussion started by: Neo
0 Replies

6. Programming

Arduino UNIX Time - Syncing Computer UNIX Time to Arduino Time with Python

Just finished a quick Python script to send the current unix time over to the Arduino from macOS, so in the absence of GPS or some other way to get the unix timestamp (epoch time) to the Arduino, I can get my macOS and Arduino UNO synced to within a second. Normally, when the Arduino starts... (9 Replies)
Discussion started by: Neo
9 Replies

7. Programming

Arduino Project: iPhone to HM-10 BLE to NB-IoT Shield to NB-IoT Network to Internet to Linux Server

This post describes a "work in progress" project I started today. Here is the High Level Overview: Currently, this project sits on my desk as an Arduino UNO (on the bottom), an NB-IoT Shield (sandwiched in the middle), a Sensor Shield (on top) with a HM-10 BLE Module (in the little... (13 Replies)
Discussion started by: Neo
13 Replies
WWW::Search::Pagesjaunes(3pm)				User Contributed Perl Documentation			     WWW::Search::Pagesjaunes(3pm)

NAME
WWW::Search::Pagesjaunes - Lookup phones numbers from www.pagesjaunes.fr SYNOPSIS
use WWW::Search::Pagesjaunes; my $pj = new WWW::Search::Pagesjaunes; $pj->find( activite => "Plombier", localite => "Paris" ); do { print $_->entry . " " foreach ($pj->results); } while $pj->has_more; DESCRIPTION
The WWW::Search::Pagesjaunes provides name, phone number and addresses of French telephone subscribers by using the <http://www.pagesjaunes.fr> directory. METHODS
Two classes are used in this module, a first one (WWW::Search::Pagesjaunes) to do the fetching and parsing, and the second one and a second one (WWW::Search::Pagesjaunes::Entry) holding the entry infos. Here are the methods for the main WWW::Search::Pagesjaunes module: new() The constructor accept an optional LWP::UserAgent as argument, if you want to provide your own. find( %request ) Here are the values for the %request hash that are understood. They each have two name, the first is the french one and the second is the english one: nom / name Name of the person you're looking for. activite / business Business type of the company you're looking for. Note that if this field is filled, the module searches in the yellow pages. localite / town Name of the town you're searching in. prenom / firstname First name of the person you're looking for. It is not set if you set the 'activite' field. departement / district Name or number of the Departement or Region you're searching in. results() Returns an array of WWW::Search::Pagesjaunes::Entry containing the first matches of the query. limit($max_number_of_entries) Set the maximum number of entries returned. Default to 50. has_more() If the query leads to more than a few results, the field has_more is set. You can then call the results() method again to fetch the datas. The WWW::Search::Pagesjaunes::Entry class has six methods: new($name, $address, $phone, $fax) Returns a new WWW::Search::Pagesjaunes::Entry. name Returns the name of the entry. address Returns the address of the entry. phone Returns the phone number of the entry. is_fax Returns true if the phone number is a fax one, false otherwise. Note that currently, this method always returns 0. entry($separator) Returns the concatenation of the name and the phone number, separated by " - ". You can specify your own separator as first argument. BUGS
The phone numbers are sometimes not correctly parsed, esp. when one entry has several phone numbers. If you found a bug and want to report it or send a patch, you are encouraged to use the CPAN Request Tracker interface: https://rt.cpan.org/NoAuth/Dists.html?Queue=WWW-Search-Pagesjaunes <https://rt.cpan.org/NoAuth/Dists.html?Queue=WWW-Search-Pagesjaunes> COPYRIGHT
Please read the Publisher information of <http://www.pagesjaunes.fr> available at the following URL: <http://www.pagesjaunes.fr/pj.cgi?html=commun/avertissement.html&lang=en> WWW::Search::Pagesjaunes is Copyright (C) 2002, Briac Pilpre This module is free software; you can redistribute it or modify it under the same terms as Perl itself. AUTHOR
Briac Pilpre <briac@cpan.org> perl v5.12.4 2011-11-02 WWW::Search::Pagesjaunes(3pm)
All times are GMT -4. The time now is 02:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy